Skip to content

Commit

Permalink
docs: Import auto first to work with Dexie
Browse files Browse the repository at this point in the history
  • Loading branch information
homura authored Feb 8, 2023
1 parent a92a72d commit 8deda8a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,9 @@ As of version 4, fake-indexeddb includes TypeScript types. As you can see in typ
If you import `fake-indexeddb/auto` before calling `new Dexie()`, it should work:

```js
import Dexie from "dexie";
// import fake-indexeddb/auto first to make Dexie works correctly
import "fake-indexeddb/auto";
import Dexie from "dexie";

const db = new Dexie("MyDatabase");
```
Expand Down

0 comments on commit 8deda8a

Please sign in to comment.