Skip to content

Commit 8deda8a

Browse files
authored
docs: Import auto first to work with Dexie
1 parent a92a72d commit 8deda8a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,9 @@ As of version 4, fake-indexeddb includes TypeScript types. As you can see in typ
9292
If you import `fake-indexeddb/auto` before calling `new Dexie()`, it should work:
9393

9494
```js
95-
import Dexie from "dexie";
95+
// import fake-indexeddb/auto first to make Dexie works correctly
9696
import "fake-indexeddb/auto";
97+
import Dexie from "dexie";
9798

9899
const db = new Dexie("MyDatabase");
99100
```

0 commit comments

Comments
 (0)