Const
Stable fallbacks for missing lists[key] / entityStates[key] slots. Inline ?? { ... } defaults allocate new objects every getSnapshot call and trigger React 19 “getSnapshot should be cached” / maximum update depth errors with useSyncExternalStore.
lists[key]
entityStates[key]
?? { ... }
getSnapshot
useSyncExternalStore
Stable fallbacks for missing
lists[key]/entityStates[key]slots. Inline?? { ... }defaults allocate new objects everygetSnapshotcall and trigger React 19 “getSnapshot should be cached” / maximum update depth errors withuseSyncExternalStore.