Skip to content

fix calling set() in callbacks potentially causing multiple updates#116

Merged
Bloomca merged 1 commit into
mainfrom
fix-callback-state-multiple-updates
Jul 17, 2026
Merged

fix calling set() in callbacks potentially causing multiple updates#116
Bloomca merged 1 commit into
mainfrom
fix-callback-state-multiple-updates

Conversation

@Bloomca

@Bloomca Bloomca commented Jul 17, 2026

Copy link
Copy Markdown
Owner

Description

There is a curious case where if we update a state inside a subscribe callback, and some combined state later used somewhere else with both, it can trigger multiple updates.

To fix that, notification callbacks need to be run using ranked approach (similar to flushing) and state values need to be replaced.

@Bloomca
Bloomca merged commit 226cc42 into main Jul 17, 2026
4 checks passed
@Bloomca
Bloomca deleted the fix-callback-state-multiple-updates branch July 17, 2026 07:11
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.

1 participant