Replies: 1 comment
-
Selectors are meant to provide a view of state derived from other Recoil state, i.e. other atoms and selectors. They also provide a If you are not dealing with reading derived state, then you don't really need a selector and it just adds additional overhead. You should not create selectors without a |
Beta Was this translation helpful? Give feedback.
-
Hey folks,
Had a usage/best practices question. From what I can tell, selectors and
useRecoilCallback
can be used to do very similar things. For example, adding many items to anatomFamily
:vs
When should I prefer selectors to callbacks? In general what is the difference?
Beta Was this translation helpful? Give feedback.
All reactions