Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upFix Suspense-wrapping heuristic (and bump version numbers) #19373
+165
−33
Conversation
| @@ -716,4 +716,93 @@ describe('ProfilingCache', () => { | |||
| TestRenderer.create(<Validator commitIndex={0} rootID={rootID} />); | |||
| }); | |||
| }); | |||
|
|
|||
| // See https://github.com/facebook/react/issues/18831 | |||
| it('should not crash during route transitions with Suspense', () => { | |||
This comment has been minimized.
This comment has been minimized.
bvaughn
Jul 15, 2020
Author
Contributor
This newly added test caught the regression between 16.13.1 (NPM release) and previous DevTools master.
sizebot
commented
Jul 15, 2020
sizebot
commented
Jul 15, 2020
a89854b
into
facebook:master
31 checks passed
31 checks passed
ci/circleci: RELEASE_CHANNEL_stable_yarn_test_prod_www_variant
Your tests passed on CircleCI!
Details
This was referenced Jul 15, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
bvaughn commentedJul 15, 2020
Fixes #18831
This PR also includes a package version bump (
16.13.1->17.0.0-alpha.0) so that DevTools tests will pass CI.PR #19108 broke DevTools
Suspenseintegration.DevTools uses the renderer's version number to figure out what the tag numbers are:
react/packages/react-devtools-shared/src/backend/renderer.js
Lines 156 to 240 in 45eef8b
As of #19108, DevTools also decides how to traverse Suspense fibers using the tag values as a form of feature detection:
react/packages/react-devtools-shared/src/backend/renderer.js
Lines 1241 to 1247 in 45eef8b
The reason this PR also bumps version numbers is that we previously had multiple
Suspenseimplementations published under 16.13.1 (both the NPM releases and our CI-built releases that tests run against), so the DevTools heuristic failed.To prevent this type of regression from happening again, a larger effort needs to be made in the form of follow up PRs to get CI running DevTools tests against a range of React releases (not just what's in master).