fix: indexDB cache error
This commit is contained in:
Vendored
+4
@@ -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) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user