You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 1, 2025. It is now read-only.
Hello, friends! Recently, I read react new beta docs and learned that updating state based on props or state is bad idea in "You Might Not Need an Effect" part. In this perspective, using useEffect to update recoil atom value based on props or state is bad idea? What is the proper way Recoil is suggesting now? I asked this question to Jotai author Daishi Kato and he said that the best way is to make props into atom. What is the Recoil's method? Thanks for your reading!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, friends! Recently, I read react new beta docs and learned that updating state based on props or state is bad idea in "You Might Not Need an Effect" part. In this perspective, using
useEffect
to update recoil atom value based on props or state is bad idea? What is the proper way Recoil is suggesting now? I asked this question to Jotai author Daishi Kato and he said that the best way is to make props into atom. What is the Recoil's method? Thanks for your reading!Beta Was this translation helpful? Give feedback.
All reactions