You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/runtime/utils/clientDatabaseManager.ts
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -273,6 +273,10 @@ export class ClientDatabaseManager {
273
273
* PGlite does not have a close method yet, see [pglite#142](https://github.com/electric-sql/pglite/issues/142).
274
274
*
275
275
* This is a hackish solution and is only meant to work before page navigation as something is causing issues and not letting the db be deleted. See code.
276
+
*
277
+
* Note that you might get an error if a database doesn't exist (even though
278
+
* the indexedDb does) as it must have been "used"/loaded at least once for
279
+
* us to know it exists. Just do useClientDb(name) then delete.
0 commit comments