Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup Zustand debugger #369

Closed
roll opened this issue May 6, 2024 · 0 comments · Fixed by #447
Closed

Setup Zustand debugger #369

roll opened this issue May 6, 2024 · 0 comments · Fixed by #447
Assignees

Comments

@roll
Copy link
Collaborator

roll commented May 6, 2024

Overview

Here is an example from another project (note that it might be more complex in ODE because of multiple stores):

import { create, StateCreator } from "zustand"
import { devtools } from "zustand/middleware"

export function createStore<TState>(stateCreator: StateCreator<TState>) {
  return create<TState>()(devtools(stateCreator))
}

Also, there is a new dedicated Zustand tool as well - https://medium.com/@itsnancyhuang/the-new-zustand-dev-tool-15613144b585

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant