Skip to content

Zustand can save functions in store? #1203

Closed Answered by dai-shi
GyeongTaeMo asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, you can store functions. In fact, actions are functions put in a store.

Notice, there might be something unexpected/undesired depending on the usage, but from zustand point of view, it's possible.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by GyeongTaeMo
Comment options

You must be logged in to vote
2 replies
@dai-shi
Comment options

@GyeongTaeMo
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
2 participants
Converted from issue

This discussion was converted from issue #1202 on August 19, 2022 02:31.