Skip to content

[codex] Fix storage change render warning#1138

Merged
binaricat merged 1 commit into
mainfrom
codex/fix-storage-render-warning
May 28, 2026
Merged

[codex] Fix storage change render warning#1138
binaricat merged 1 commit into
mainfrom
codex/fix-storage-render-warning

Conversation

@binaricat
Copy link
Copy Markdown
Owner

Summary

  • Defer same-window localStorage change notifications so they no longer fire during React render.
  • Coalesce repeated key notifications in the same tick before dispatching.
  • Fixes the warning where App state was updated while AIStateProviderInner was rendering.

Validation

  • npm run lint -- --max-warnings=0
  • npm run build
  • npm test
  • localStorageAdapter async notification probe

@binaricat binaricat marked this pull request as ready for review May 28, 2026 07:37
@binaricat binaricat merged commit 40fb5b6 into main May 28, 2026
16 checks passed
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