Does redux "unload" the state data from memory that it is not actively using? #3967
-
I tried to search for Anyway assuming I have data stored in AsyncStorage with redux-persist that contains many pieces of information and not all of them are used in every screen. Does RTK unload it's data from memory to the persist store or just keep them in memory for the life of the app? I read this part about limitations of Redux in WatermelonDB which made me think of the question.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
No, persistence is about syncing data in the store to somewhere else like Redux has the entire current store state in memory, in a single variable. Anything pointed to by that nested object is in memory. |
Beta Was this translation helpful? Give feedback.
No, persistence is about syncing data in the store to somewhere else like
localStorage
.Redux has the entire current store state in memory, in a single variable. Anything pointed to by that nested object is in memory.