fix(canvas): clear localStoreService singleton on unmount — disposed store was returned to next mount causing currentPageId crash
Some checks failed
app-ci-deploy / test-build-deploy (push) Has been cancelled

This commit is contained in:
CC Worker 2026-06-01 03:04:29 +00:00
parent 38ca23dc3e
commit a375fbe37f

View File

@ -150,6 +150,7 @@ export default function SinglePlayerPage() {
snapshotServiceRef.current = null;
storeRef.current?.dispose();
storeRef.current = null;
localStoreService.clearStore(); // reset singleton so next getStore() creates a fresh store
setStoreReady(false);
setCanvasPhase('idle');
};