Skip to content
This repository has been archived by the owner on Jan 1, 2025. It is now read-only.

how to update recoil state using useRecoilCallback and then do some other logic #1356

Answered by drarmstr
emadbaqeri asked this question in Q&A
Discussion options

You must be logged in to vote

The callback provided to useRecoilCallback() gets set() and reset() named parameters. These functions can be used to update atom state in the callback.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by emadbaqeri
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