-
Hi there,
I guess my question is: has anyone tried make these packages play nicely together? Or are there better options to achieve persistence of pinia stores between app launches? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hello and thank you for using the Vutron template! I'm not sure if this is a useful answer, but I'll write it down to the best of my knowledge. Yes, you are correct. The I initially considered adding this module as an example to the template, but I thought it would be confusing for beginners due to the non-simple initial setup and the fact that the data is managed by the main process. However, it's not an impossible solution by any means and I'm sure it's a model that could be useful in production if adapted. Below is an example of a project with a different concept than https://github.com/jooy2/retron/tree/b8c7b630cca4bf6965cb01d290a2a575cad79293 A second option is to use a solution like Finally, if your persistent data is simple, you can also try I hope this short answer was helpful to you. Thank you. |
Beta Was this translation helpful? Give feedback.
-
Oh, I just looked it up some more and it looks like there's also a third-party plugin for |
Beta Was this translation helpful? Give feedback.
Hello and thank you for using the Vutron template!
I'm not sure if this is a useful answer, but I'll write it down to the best of my knowledge.
Yes, you are correct. The
electron-store
is one of the storage modules that preserves data even when the app is closed.I initially considered adding this module as an example to the template, but I thought it would be confusing for beginners due to the non-simple initial setup and the fact that the data is managed by the main process. However, it's not an impossible solution by any means and I'm sure it's a model that could be useful in production if adapted.
Below is an example of a project with a different concept than
Vutron
, but usingReact +…