pmndrs / jotai

👻 Primitive and flexible state management for React
https://jotai.org
MIT License
18.72k stars 617 forks source link

Add test "Atom graph supports cycles" #2822

Open dmaskasky opened 20 hours ago

dmaskasky commented 20 hours ago

Related Bug Reports or Discussions

https://github.com/pmndrs/jotai/pull/2742#issuecomment-2479272955 https://github.com/pmndrs/jotai/discussions/2823

Summary

With the change https://github.com/pmndrs/jotai/pull/2742 (v2.10.1), cycles in atom graphs will error with a RangeError in readAtomState and onmount.

Check List

vercel[bot] commented 20 hours ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
jotai ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 16, 2024 0:19am
codesandbox-ci[bot] commented 20 hours ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

github-actions[bot] commented 20 hours ago

LiveCodes Preview in LiveCodes

Latest commit: cd3a0cdb5883bbd15a6d698b44d5ad3bab187d1d
Last updated: Nov 16, 2024 12:17am (UTC)

Playground Link
React demo https://livecodes.io?x=id/7VSNW579V

See documentations for usage instructions.