Typing and various improvements
Typing​
- Add explicit and required
childrenprop to<RecoilRoot>anduseRecoilBridgeAcrossReactRoots_UNSTABLE()for TypeScript to support the removal of implicit children with `@types/react@^18.0.0 for React 18. (#1718, #1717, #1726, #1731) - Update typing for family parameters to better support Map, Set, and classes with
toJSON(). (#1709, #1703)
Fixes​
- Avoid dev-mode console error with React 18 when using shared async selectors across multiple
<RecoilRoot>'s. (#1712) - Cleanup potential memory leak when using async selectors. (#1714)
- Fix potentially hung async selectors when shared across multiple roots that depend on atoms initialized with promises that don't resolve. (#1714)