use pinia-plugin-persistedstate with pinia-orm #202
Answered
by
CodeDredd
unknown1337
asked this question in
Q&A
|
Dear, I'm starting to get a bit used to pinia-ORM, thanks!! Now I would like my stores to be persistent, how can I use the pinia-plugin-persistedstate? I installed the plugin, registered it on the pinia store (.use() ). Though I don't know how to put the persist=true in my 'Model' / store? Example that I've tried:
What works: I can put data in my pinia-orm stores and see the content in the vuedevtools. THANKS! |
Answered by
CodeDredd
Aug 16, 2022
Replies: 1 comment 2 replies
|
Look at https://pinia-orm.codedredd.de/guide/model/pinia-options#extending-the-store-options-eg-for-plugins |
2 replies
Answer selected by
unknown1337
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Look at https://pinia-orm.codedredd.de/guide/model/pinia-options#extending-the-store-options-eg-for-plugins