fix: indexDB cache error

This commit is contained in:
Tristan Yang
2023-03-17 17:12:49 +08:00
parent 732eec3095
commit 87f07148e2
+4
View File
@@ -27,6 +27,10 @@ const useRehydrate = () => {
ui: {}, ui: {},
server: {} server: {}
}; };
if (!window.CACHE) {
setIterated(true);
return;
}
const tables = Object.keys(window.CACHE); const tables = Object.keys(window.CACHE);
await Promise.all( await Promise.all(
tables.map((_key) => { tables.map((_key) => {