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

[Advanced] Wrapping/Mirroring a Component with ref forwarding #629

Closed
pierreburel opened this issue Jun 28, 2023 · 0 comments · Fixed by #640
Closed

[Advanced] Wrapping/Mirroring a Component with ref forwarding #629

pierreburel opened this issue Jun 28, 2023 · 0 comments · Fixed by #640
Labels
ADVANCED Advanced Cheatsheet

Comments

@pierreburel
Copy link

pierreburel commented Jun 28, 2023

What cheatsheet is this about? (if applicable)

Advanced cheatsheet

What's your issue or idea?

I'm afraid the TODO: doublecheck this part regarding second layer ref forwarding in Useful Patterns by Use Case › Wrapping/Mirroring a Component is indeed not working.

Here's a sandbox showing that there's no TS error, but the ref is not really forwarded as using it has no effect: https://codesandbox.io/s/typescript-cheatsheets-correction-jr92sc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ADVANCED Advanced Cheatsheet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant