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

[compiler] Allow ref access in useImperativeHandle #30913

Closed
wants to merge 1 commit into from

Conversation

mvitousek
Copy link
Contributor

@mvitousek mvitousek commented Sep 8, 2024

Stack from ghstack (oldest at bottom):

Summary:
Code within the useImperativeHandle callback is not executed during render, much like useEffect. We can apply the same rules around ref access to this callback.

Summary:
Code within the useImperativeHandle callback is not executed during render, much like useEffect. We can apply the same rules around ref access to this callback.

[ghstack-poisoned]
Copy link

vercel bot commented Sep 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-compiler-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 8, 2024 0:54am

mvitousek added a commit that referenced this pull request Sep 8, 2024
Summary:
Code within the useImperativeHandle callback is not executed during render, much like useEffect. We can apply the same rules around ref access to this callback.

ghstack-source-id: 8e528397032a9fa1d023562f9be3672e136bf029
Pull Request resolved: #30913
@mvitousek
Copy link
Contributor Author

Superseded by #30917

@mvitousek mvitousek closed this Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants