use pinia-plugin-persistedstate with pinia-orm #202
-
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! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Look at https://pinia-orm.codedredd.de/guide/model/pinia-options#extending-the-store-options-eg-for-plugins |
Beta Was this translation helpful? Give feedback.
Look at https://pinia-orm.codedredd.de/guide/model/pinia-options#extending-the-store-options-eg-for-plugins