- useDb(): {
clearCache: (() => Promise<void>);
getDbInstance: (() => Promise<Dexie>);
} Returns {
clearCache: (() => Promise<void>);
getDbInstance: (() => Promise<Dexie>);
}
clearCache: (() => Promise<void>)
- (): Promise<void>
Returns Promise<void>
getDbInstance: (() => Promise<Dexie>)
- (): Promise<Dexie>
Returns Promise<Dexie>
This hook returns the local DB instance and a method for clearing all of its data