Welcome to Recoil 0.5 with a few new APIs and improvements.
useRecoilRefresher_UNSTABLE() hook has been added for refreshing selectors that execute data queries. This is useful if you just want to refresh for newer data or retry due to an error. (#972, #1294, #1302)
onSet()callback to know if the atom was reset. (#1358, #1345)
getInfo_UNSTABLE()for reading other atoms. (#1205, #1210)
- Allow class instances in family parameters for Flow (#1215)
- Fix user-thrown promises in selectors for some cases.
- Improved dev-mode checks:
- Upgrade Prettier version (#1366)
Also lots of restructuring in preparation for the upcoming
recoil-sync library release...