Skip to content

Commit 7b5e263

Browse files
authored
Merge pull request #80 from homura/patch-1
docs: Import auto first to work with Dexie
2 parents a92a72d + 42353b1 commit 7b5e263

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@ As of version 4, fake-indexeddb includes TypeScript types. As you can see in typ
8989

9090
### Dexie and other IndexedDB API wrappers
9191

92-
If you import `fake-indexeddb/auto` before calling `new Dexie()`, it should work:
92+
If you import `fake-indexeddb/auto` before importing `dexie`, it should work:
9393

9494
```js
95-
import Dexie from "dexie";
9695
import "fake-indexeddb/auto";
96+
import Dexie from "dexie";
9797

9898
const db = new Dexie("MyDatabase");
9999
```

0 commit comments

Comments
 (0)