Skip to content

Conversation

@bvaughn
Copy link
Contributor

@bvaughn bvaughn commented Jul 13, 2020

Fixes #19320

This test should fail the new CI task (to run latest DevTools against all recent minor OSS releases) but that does not yet exist. I will set that up with a follow up PR.

@bvaughn bvaughn requested review from acdlite and gaearon July 13, 2020 19:14
@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Jul 13, 2020

function EmptySuspense() {
return <Suspense />;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically this fixture doesn't help here since React and DevTools are in-sync, but it seemed nice to cover this missing case for the future.

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit d162092:

Sandbox Source
React Configuration

@sizebot
Copy link

sizebot commented Jul 13, 2020

No significant bundle size changes to report.

Size changes (stable)

Generated by 🚫 dangerJS against d162092

@sizebot
Copy link

sizebot commented Jul 13, 2020

No significant bundle size changes to report.

Size changes (experimental)

Generated by 🚫 dangerJS against d162092

Copy link
Collaborator

@gaearon gaearon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are there more similar places to revisit?

@bvaughn
Copy link
Contributor Author

bvaughn commented Jul 13, 2020

I don't think so. This regression was introduced in #19108 and I think the only other branch impacted in that PR already handled the null-child case.

@bvaughn bvaughn merged commit fbc6386 into facebook:master Jul 13, 2020
@bvaughn bvaughn deleted the devtools_empty_suspense branch July 13, 2020 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed React Core Team Opened by a member of the React Core Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: DevTools extension component tree view crashes on empty Suspense element

4 participants