Configurable Persistence & Rehydration of Pinia Stores
"The
pinia-plugin-persistedstate
plugin aims to provide persistence to Pinia stores for everyone and in every project with a consistent API. Whether you are fine with the defaults to save a complete store, or you need fine-grained configuration with multiple storages and a custom serializer, the plugin got you covered, all within the same persist option on the stores you want to persist.This plugin was born in the early days of Pinia, before it officially replaced VueX. It initially aimed to reproduce
vuex-persistedstate
for Pinia. It is actively maintained to bring you the best developer experience possible with persisting your stores."