Files
WRNexusJS/packages
ClintchizandClaude Opus 5 468f63f378 feat(react): add referentially-stable snapshot and selector caches
useSyncExternalStore requires getSnapshot to return an identical
reference when unchanged; @wrnexus/store's readonlySnapshot returns a
fresh clone per call. The cache lives here rather than in the store
package so existing consumers are untouched.

createSelectorCache takes an optional equality function: the Object.is
default can never stabilize a selector that allocates, which is the
usual source of infinite re-renders.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-18 15:11:22 +05:30
..
2026-08-11 13:40:03 +05:30
2026-08-11 13:40:03 +05:30
2026-08-11 13:40:03 +05:30
2026-08-11 13:40:03 +05:30
2026-08-11 13:40:03 +05:30
2026-08-11 13:40:03 +05:30
2026-08-11 13:40:03 +05:30
2026-08-11 13:40:03 +05:30
2026-08-11 13:40:03 +05:30
2026-08-11 13:40:03 +05:30
2026-08-11 13:40:03 +05:30
2026-08-11 13:40:03 +05:30
2026-08-11 13:40:03 +05:30
2026-08-11 13:40:03 +05:30
2026-08-11 13:40:03 +05:30
2026-08-11 13:40:03 +05:30
2026-08-11 13:40:03 +05:30