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

How to manage state inside Portal? #50

Open
sahiljena opened this issue Sep 5, 2024 · 1 comment
Open

How to manage state inside Portal? #50

sahiljena opened this issue Sep 5, 2024 · 1 comment

Comments

@sahiljena
Copy link

sahiljena commented Sep 5, 2024

I'm passing a state as a prop in my component which is inside the portal, if I change the state value, it does not change in the component which is in the portal.
Is there anyway i can handle state changes in my component?

@alexey-pd
Copy link

Is there anyway i can handle state changes in my component?

Maybe not best way but I solved stale state by calling update method from usePortal hook with same component jsx.

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

No branches or pull requests

2 participants