Skip to content

How to check updateCachedData's draft object for Entity Ids? #1501

Answered by phryneas
niZmosis asked this question in Q&A
Discussion options

You must be logged in to vote

You can access that normally, it just logs weird because it is an immer proxy object.
See https://redux-toolkit.js.org/api/createReducer#logging-draft-state-values

Generally: if you just want to update, use update, not upsert. That way no new entries will be created.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by niZmosis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants