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.
★ 19,400⑂ 1,207👁 1⑃ 1,061● 1,035▤ 26
+0
日增长
19,400
stars
1,207
forks
1
watchers
1,061
prs
1,035
issues
26
releases
README
Recoil · Recoil is an experimental state management framework for React. Website: https://recoiljs.org Documentation Documentation: https://recoiljs.org/docs/introduction/core-concepts API Reference: https://recoiljs.org/docs/api-reference/core/RecoilRoot Tutorials: https://recoiljs.org/resources Installation The Recoil package lives in npm. Please see the installation guide To install the latest stable version, run the following command: shell npm install recoil Or if you're using yarn: shell yarn add recoil Or if you're using bower: shell bower install --save recoil Contributing Development of Recoil happens in the open on GitHub, and we are grateful to the community for contributing bugfixes and improvements. Read below to learn how you can take part in improving Recoil. - Code of Conduct - Contributing Guide License Recoil is MIT licensed.
Top issues
#12Warning: Cannot update a component (`xxx`) while rendering a different component (`xxx`).88 comments · 2020-05-14#1495What's happening in the future of recoil?50 comments · 2021-12-10#1416[Feature request] Customizable control over when a selector triggers re-render31 comments · 2021-11-13#194DevTools23 comments · 2020-05-28#366Memory leak when using atomFamily/selectorFamily22 comments · 2020-06-19#767onSet() handler in effect not triggered when atom initialized via RecoilRoot initializeState or snapshot19 comments · 2020-11-28#231Feature request: Second parameter for atomFamily passed to default function19 comments · 2020-06-01#410Architecture & Example Code to Access Atoms Outside of Components (from supporting code for authentication, logging, etc.)18 comments · 2020-06-26
Discussions
#2331How to retrieve and update data in non React components in JavaScript code?0 comments · 2024-12-09#2326Need help with using useRef() with recoil.0 comments · 2024-10-26#2325Issues with Generic Type Inference in atomFamily causing duplicate Atom Key errors in Recoil0 comments · 2024-08-21#2322useRecoilRefresher_UNSTABLE Randomly Doesn't Work0 comments · 2024-07-18#2316I find it hard to use.0 comments · 2024-05-04#2304default state is rendering when the page reloding0 comments · 2024-02-13#2269Recoil Async Selector does not work with Next.js3 comments · 2023-08-08#2253Jest testing current Recoil's state after change it0 comments · 2023-07-03
Latest release
0.7.7 0.7.7 2023-04-11Fix potential unhandled promise rejection in useRecoilCallback() (2075) Add OSS support for GateKeeper feature toggling via RecoilEnv.RECOIL_GKS_ENABLED (2078) Fix resolving suspense of async selectors used with SSR (2073, 1960) Fix SSR with some versions of React DOM used with Next.JS 13 (2082, 2086)