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
I have a very simple store which consists of key-value pairs [key: string]: true.
I try to run update and delete one of the keys from the store. However, the store produces no changes as evident from Redux devtools and the observed state in the UI.
From what I know update performs a merge over the object in the store therefore the old properties won't be removed. I believe you should switch to method store.replace() that - as its name suggests - would replace the whole object. Alternatively you could try to set newState.a to an explicit undefined value.
Is this a regression?
No
Description
I have a very simple store which consists of key-value pairs
[key: string]: true
.I try to run
update
and delete one of the keys from the store. However, the store produces no changes as evident from Redux devtools and the observed state in the UI.I have tried it with and without Immer.
As a result
newState
is an object with one propertyb
, but the state in the store is still an object witha
andb
despite the new state was returned.Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
No response
Please provide the environment you discovered this bug in
No response
Anything else?
No response
Do you want to create a pull request?
No
The text was updated successfully, but these errors were encountered: