Skip to content

Console.log not working in api.util.updateQueryData() #1243

Answered by markerikson
tomascsantos asked this question in Q&A
Discussion options

You must be logged in to vote

@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 Immer current() util function to log a more readable version.

Not sure why you'd be unable to set a breakpoint in there, though.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@phryneas
Comment options

@tomascsantos
Comment options

@phryneas
Comment options

@tomascsantos
Comment options

Answer selected by tomascsantos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants