Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v9] fix(reconciler): don't implement (un)hideInstance methods #3241

Merged
merged 2 commits into from
Apr 28, 2024

Conversation

CodyJasonBennett
Copy link
Member

@CodyJasonBennett CodyJasonBennett commented Apr 28, 2024

Fixes a regression from #3224 where React will hide but never unhide WIP instances during Suspense in the glTF example. Need to report upstream as we're uniquely sensitive to this behavior, although we work around WIP or Suspenseful instances in a more robust way. For that reason, we can remove these hooks as they are impure and produce an invalid tree.

I added a failing test in f1a296d to demonstrate this behavior. Fails on v9, passes after this PR. This is since React 19.

Copy link

codesandbox-ci bot commented Apr 28, 2024

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 bb392e6:

Sandbox Source
example Configuration

@krispya
Copy link
Member

krispya commented Apr 28, 2024

Looks good here.

@CodyJasonBennett CodyJasonBennett merged commit eafe554 into v9 Apr 28, 2024
2 checks passed
@CodyJasonBennett CodyJasonBennett deleted the fix/dont-implement-hiding branch April 28, 2024 06:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants