Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Fix false positive feature-detection check #1139

Merged
merged 1 commit into from
Aug 30, 2018

Conversation

bvaughn
Copy link
Contributor

@bvaughn bvaughn commented Aug 30, 2018

Addresses the issue brought up with this comment by improving our feature-detection check to avoid false positive from 16.4

The actualDuration field was added by facebook/react/pull/12910 and was released in 16.4.

The treeBaseDuration field was renamed with facebook/react/pull/13156 in order to allow us to distinguish between the initial profiling release and a more stable one. I intended to switch DevTools to use this field but apparently forgot to. ☹️

The previous attribute, 'actualDuration', was present in 16.4 releases of React as well– even though profiler has changed a bit since that release. The new attribute will only exist in the upcoming release.
@bvaughn bvaughn merged commit f8c5970 into facebook:master Aug 30, 2018
@bvaughn bvaughn deleted the issues/1117 branch August 30, 2018 14:47
@bvaughn
Copy link
Contributor Author

bvaughn commented Aug 30, 2018

Merging without a review because this change is tiny and uncontroversial.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants