Skip to content

Commit

Permalink
docs: explicitly pass context to the install function
Browse files Browse the repository at this point in the history
  • Loading branch information
Ernest committed Mar 17, 2022
1 parent 350f7e7 commit 6959cb6
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 @@ -53,7 +53,8 @@ import { createPinia } from 'pinia'
import { createPersistedStatePlugin } from 'pinia-plugin-persistedstate-2'

const pinia = createPinia()
pinia.use(createPersistedStatePlugin())
const installPersistedStatePlugin = createPersistedStatePlugin()
pinia.use((context) => installPersistedStatePlugin(context))
```

### Examples
Expand Down

0 comments on commit 6959cb6

Please sign in to comment.