Cache dynamic route? #11823
timothyerwin
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey All,
Having a strange issue here. Basically I'm trying to cache the screen when navigating to the same route with {id} multiple times, but it always rebuilds the screen from scratch.
Trying to mimic the behavior of other chat apps like WhatsApp for example where the state is saved when reopening a specific chat.
In theory, it seems like it should be easy but there are so many options and gotchas with the React Native Navigation library that I'm not sure how this would be done. For example, getId, key, freezeOnBlur, etc are a few of the options.
When navigating between screens I'm just using
navigation.navigate('/chats/channel', {id});
Beta Was this translation helpful? Give feedback.
All reactions