facebookexperimental / Recoil

Recoil is an experimental state management library for React apps. It provides several capabilities that are difficult to achieve with React alone, while being compatible with the newest features of React.
https://recoiljs.org/
MIT License
19.57k stars 1.18k forks source link

Asynchronous transactions with useRecoilTransaction_UNSTABLE() #1195

Open sanonz opened 3 years ago

sanonz commented 3 years ago

Example

https://codesandbox.io/s/react-recoil-trans-j0k0b?file=/src/App.jsx

drarmstr commented 3 years ago

useRecoilTransaction_UNSTABLE() does not yet support asynchronous transactions. This support is part of the vision for transactions.

sanonz commented 3 years ago

😝