Function useDb

This hook returns the local DB instance and a method for clearing all of its data

  • Returns {
        clearCache: (() => Promise<void>);
        getDbInstance: (() => Promise<Dexie>);
    }

    • clearCache: (() => Promise<void>)
        • (): Promise<void>
        • Returns Promise<void>

    • getDbInstance: (() => Promise<Dexie>)
        • (): Promise<Dexie>
        • Returns Promise<Dexie>