Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

Router / navigation recreates each screen when the stack changes. #8

Closed
Simon-Laux opened this issue Feb 21, 2020 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@Simon-Laux
Copy link
Member

It should not do that. It should just add the new screen and not recreate anything else.
maybe we could use react memo or sth. similar to fix that?

Also I believe this makes the screens forget their data/state/focus.

@Simon-Laux Simon-Laux added the bug Something isn't working label Feb 21, 2020
@Simon-Laux
Copy link
Member Author

Simon-Laux commented Feb 22, 2020

Ok, false alarm, it just calls the useEffect again, so you need to be careful what do in it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant