Skip to content
Discussion options

You must be logged in to vote

@gsouf the right way to do it is by using useRef instead of useMemo

Ref: https://docs.pmnd.rs/zustand/guides/initialize-state-with-props

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@dbritto-dev
Comment options

Answer selected by dbritto-dev
@gsouf
Comment options

@dbritto-dev
Comment options

@gsouf
Comment options

@dbritto-dev
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants