fix(canvas): clear localStoreService singleton on unmount — disposed store was returned to next mount causing currentPageId crash
app-ci-deploy / test-build-deploy (push) Has been cancelled
app-ci-deploy / test-build-deploy (push) Has been cancelled
This commit is contained in:
@@ -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');
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user