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

useRecoilCallback with set vs useSetRecoilState best practice #2050

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

You must be logged in to vote

useSetRecoilState() is more efficient, but useRecoilCallback() can handle more complex situations.

Replies: 1 comment 1 reply

Comment options

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

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