Skip to content

Commit

Permalink
Merge pull request #80 from homura/patch-1
Browse files Browse the repository at this point in the history
docs: Import auto first to work with Dexie
  • Loading branch information
dumbmatter authored Feb 9, 2023
2 parents a92a72d + 42353b1 commit 7b5e263
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ As of version 4, fake-indexeddb includes TypeScript types. As you can see in typ

### Dexie and other IndexedDB API wrappers

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

```js
import Dexie from "dexie";
import "fake-indexeddb/auto";
import Dexie from "dexie";

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

0 comments on commit 7b5e263

Please sign in to comment.