Skip to content

Should Jotai support atom graph cycles? #2823

Answered by dai-shi
dmaskasky asked this question in Q&A
Discussion options

You must be logged in to vote

I don't think we should support it. It's mathematically wrong, or undefined, right?
I think the cycles would cause infinite loops, or should error with cycle / infinite loop detection.

I think it's reasonable for atomEffect to have its own workaround as effect can be imperative instead of declarative.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dmaskasky
Comment options

dmaskasky Nov 17, 2024
Collaborator Author

Answer selected by dmaskasky
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants