Closed futpib closed 5 years ago
The getStateFromCookies(initialState, paths) call will mutate initialState.
getStateFromCookies(initialState, paths)
initialState
In server-side rendering setting this leads to really bad stuff like different users getting other user's cookies in their state.
Had to do getStateFromCookies(clone(initialState), paths) to avoid this.
getStateFromCookies(clone(initialState), paths)
Issues fixed by PR #51. Hence closing the issue.
The
getStateFromCookies(initialState, paths)
call will mutateinitialState
.In server-side rendering setting this leads to really bad stuff like different users getting other user's cookies in their state.
Had to do
getStateFromCookies(clone(initialState), paths)
to avoid this.