You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The initial state of the key in my reducer is undefined but after expiration it gets reset to {} which is truthy so it breaks my app, would it be possible to pass undefined or state that the element should be cleared ?
PS: You have examples using expiredState: [] but you are using Object.assign({}, config.expiredState) so anything other than an object will always return empty object, see screenshot:
PS2: Why not make expiredState a function that returns a state, so it is possible to return undefined, while still being able to just not pass the function to not have a state reset
The text was updated successfully, but these errors were encountered:
The initial state of the key in my reducer is
undefined
but after expiration it gets reset to{}
which is truthy so it breaks my app, would it be possible to passundefined
or state that the element should be cleared ?PS: You have examples using
![Capture d’écran 2023-02-24 à 17 16 19](https://user-images.githubusercontent.com/117643868/221230284-6f48cfbb-05f1-4334-a76e-d1bf66bcecbd.png)
expiredState: []
but you are usingObject.assign({}, config.expiredState)
so anything other than an object will always return empty object, see screenshot:PS2: Why not make expiredState a function that returns a state, so it is possible to return undefined, while still being able to just not pass the function to not have a state reset
The text was updated successfully, but these errors were encountered: