refactor: add batch insert into indexDB
This commit is contained in:
Vendored
+4
-1
@@ -1,7 +1,10 @@
|
||||
import localforage from "localforage";
|
||||
import * as localforage from "localforage";
|
||||
import { extendPrototype } from 'localforage-setitems';
|
||||
|
||||
import useRehydrate from "./useRehydrate";
|
||||
import { KEY_UID, CACHE_VERSION } from "../config";
|
||||
|
||||
extendPrototype(localforage);
|
||||
const tables = [
|
||||
{
|
||||
storeName: "channels",
|
||||
|
||||
Reference in New Issue
Block a user