gorhom / react-native-portal

A simplified portal implementation for ⭕️ React Native & Web ⭕️.
MIT License
655 stars 36 forks source link

Portal does not render when unmounting `PortalHost` and remounting again #18

Closed mrousavy closed 3 years ago

mrousavy commented 3 years ago

Awesome library @gorhom!

In my use-case, I conditionally render a <PortalHost>. This works on the first time, but after unmounting it and mounting it again, the Portal inside does not render anymore.

I'd love to provide a reproduceable example, but unfortunately the codebase is very nested and WIP right now, if you have trouble reproducing this I could try patching something together..

Thanks!

gorhom commented 3 years ago

Hey @mrousavy , i will look into it 👍

gorhom commented 3 years ago

should be fixed with v1.0.8

janvandertaelen commented 2 years ago

I also have the same issue on version v1.0.12. When the host is conditionally hidden it doesn't reappear

roviks commented 2 years ago

@gorhom still not fixed