ptmy (22) [Avatar] Offline
#1
I know it's recommended practice to return a brand new state (i.e., a copy of the existing state with modifications) from a reducer. Does the Redux store use this reducer-returned value to mutate the old state in storage, or does it actually keeps a copy of both. Based on various comments I read on the internet, I speculate it's the latter; if this is the case, for large applications with lots of data in Redux, wouldn't the application eventually run into performance problems due to heavy memory usage, or crash due to insufficient memory?