Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix infinite loop when the action was called during notifying by another action #80

Merged
merged 1 commit into from
Dec 6, 2023

Conversation

prodderman
Copy link
Contributor

@prodderman prodderman commented Oct 19, 2023

@raveclassic Hi

Infinite loop bugfix when I call action during notifying under another action

const a = newAtom(0)
const cb = () => action(() => {})
a.subscribe({ next: cb })
action(() => a.set(1))

@raveclassic
Copy link
Owner

Hi @prodderman, thanks for the fix!

Please, fix the commit message though

@prodderman
Copy link
Contributor Author

@raveclassic check it again pls

@raveclassic raveclassic merged commit 336948c into raveclassic:master Dec 6, 2023
@bukhtiyarov-a-v
Copy link

Thx guys!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants