Skip to content

listen/subscribe to a particular action? #132

Answered by ai
marcebdev asked this question in Q&A
Discussion options

You must be logged in to vote

action() in Nano Stores is just a syntax sugar for logger.

All logic should be in stores, and you should subscribe to some specific store changes.

For form validation, I mostly used form store. In useEffect I create a new form store and propagate it down by context. This store has values and validation status.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@marcebdev
Comment options

Answer selected by marcebdev
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