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

Any way to prevent unmounting of the portal contents when changing portals that aren't located within the same component? #17

Closed
Nantris opened this issue Nov 27, 2020 · 2 comments

Comments

@Nantris
Copy link

Nantris commented Nov 27, 2020

I noticed all of the examples are limited to toggling between portals within the same component. Unfortunately if you swap portals that are within child components, you get unmounts every time you swap. Is there any way around this?

Example

Thanks for sharing this awesome library!

@Nantris
Copy link
Author

Nantris commented Nov 27, 2020

Whoops I think I set things up backwards...

@Nantris Nantris closed this as completed Nov 27, 2020
@pimterry
Copy link
Member

Haha, glad you got this sorted @slapbox! Sorry if things weren't clear - if there was anything specifically in the README that lead you astray, feel free to open a PR to clarify it 😃

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