Console.log not working in api.util.updateQueryData() #1243
-
Hi all, I'm attempting to implement optimistic updates, but the updateQueryData function has been very opaque for me:
For some reason, I cannot log what Thanks!! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
@tomascsantos yeah, most likely Not sure why you'd be unable to set a breakpoint in there, though. |
Beta Was this translation helpful? Give feedback.
@tomascsantos yeah, most likely
draftPosts
is an Immer Proxy-wrapped "draft" object. See https://redux-toolkit.js.org/usage/immer-reducers#debugging-and-inspecting-drafted-state for tips on how to use the Immercurrent()
util function to log a more readable version.Not sure why you'd be unable to set a breakpoint in there, though.