refactor: local handler types

This commit is contained in:
Tristan Yang
2022-07-17 17:41:58 +08:00
parent 8912b141ec
commit 7d8c911a64
11 changed files with 33 additions and 41 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ const useRehydrate = () => {
const tables = Object.keys(window.CACHE);
const results = await Promise.all(
tables.map((_key) => {
return window.CACHE[_key].iterate((data, key) => {
return window.CACHE[_key]?.iterate((data: any, key) => {
// console.log("iterated", key);
switch (_key) {
case "channels":