Replies: 3 comments 1 reply
-
Hello @Rednas83 ! Please give concrete examples and context of what you are trying to achieve. Currently there is no storage in Pinia Colada so I really don't know what to think of this |
Beta Was this translation helpful? Give feedback.
-
Unstorage offers flexibility by supporting various storage types out of the box, whereas Pinia is currently limited to browser/local storage. This limitation can be a significant drawback for developers who need more advanced or varied storage solutions. For example, with Unstorage, you can easily integrate with MongoDB:
While Unstorage's versatility is a strong point, its lack of reactivity means it cannot automatically update your application state when the storage changes. This is a crucial feature for state management libraries like Pinia, which thrive on reactivity to maintain a seamless user experience. Here's why Pinia should support more storage types: Flexibility Scalability Performance Reactivity: In conclusion, expanding Pinia's storage support to include multiple types would significantly enhance its flexibility, scalability, and performance while maintaining its reactivity benefits. |
Beta Was this translation helpful? Give feedback.
-
Not just persistance with https://github.com/prazdevs/pinia-plugin-persistedstate, but also for sharing data instead of keeping everything locally. |
Beta Was this translation helpful? Give feedback.
-
Perhpaps by using unstorage as a dependacy
Beta Was this translation helpful? Give feedback.
All reactions