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

Repro for mismatch of changed hook and used hook #28587

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

eps1lon
Copy link
Collaborator

@eps1lon eps1lon commented Mar 19, 2024

Test reproducing #28584. This is not minimal since I haven't started removing wrappers until it no longer reproduces. But this should be a good starting point if somebody wants to pick this up.

Test plan

  • yarn test --build --project=devtools -r=experimental profilingCache-test --testNamePattern "should properly detect changed hooks #2"

@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Mar 19, 2024
@eps1lon eps1lon force-pushed the devtools/hook-changed-mismatch branch from 2165efb to ca6eb7c Compare March 19, 2024 11:46
"context": false,
"didHooksChange": true,
"hooks": [
31,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We don't have that many hooks. Highest index is 29. It should probably be 28 since that's the index of the React.useSyncExternalStore call.

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.

2 participants