Skip to content

Commit f6013c8

Browse files
committed
fix(storage): fix shared app storage issue
1 parent f37ebce commit f6013c8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/reactant-share/src/modules/storage.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ class ReactantStorage extends BaseReactantStorage {
3636
if (this.portDetector.isServer) {
3737
this.portDetector.syncToClients();
3838
}
39+
// If client is hydrated later than server
40+
// we need to sync the full state from server to client
41+
if (this.portDetector.isClient) {
42+
this.portDetector.syncFullState();
43+
}
3944
});
4045
}
4146
}

0 commit comments

Comments
 (0)