Skip to content

fix: Emit synchronization state only after merging into history - #649

Open
realpoke wants to merge 1 commit into
foxssake:mainfrom
realpoke:fix/sync-server-state-emit
Open

fix: Emit synchronization state only after merging into history#649
realpoke wants to merge 1 commit into
foxssake:mainfrom
realpoke:fix/sync-server-state-emit

Conversation

@realpoke

@realpoke realpoke commented Sep 4, 2026

Copy link
Copy Markdown

_on_state was emitted even when _merge_rollback_state rejected the snapshot, for example stale or out-of-history data, so consumers could react to state that was never actually recorded.
The emission is now gated on the merge succeeding.

_on_state was emitted even when _merge_rollback_state rejected the
snapshot (e.g. stale or out-of-history data), letting consumers react
to state that was never recorded.
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