Skip to content

How do you debug code that use zustand? #2519

Answered by LeoRedin
fredericrous asked this question in Q&A
Discussion options

You must be logged in to vote

https://github.com/pmndrs/zustand?tab=readme-ov-file#redux-devtools

The easiest way I see is using the built-in devtools middleware from zustand. With that you need a Redux Devtools or similar extension and you can see pretty much everything from the extension itself.

Or you can use the logger recipe from zustand docs

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@fredericrous
Comment options

@LeoRedin
Comment options

Answer selected by fredericrous
@fredericrous
Comment options

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