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 11 replies

Comment options

You must be logged in to vote
11 replies
@na2hiro
Comment options

@na2hiro
Comment options

@dmaskasky
Comment options

dmaskasky Dec 17, 2024
Collaborator Author

@na2hiro
Comment options

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
3 participants