pinia-plugin-persistedstate
💾 Configurable persistence and rehydration of Pinia stores. (by prazdevs)
pinia-shared-state
🍍 Sync your Pinia state across browser tabs. (by wobsoriano)
pinia-plugin-persistedstate | pinia-shared-state | |
---|---|---|
8 | 3 | |
2,275 | 272 | |
2.9% | - | |
8.9 | 7.5 | |
7 days ago | about 1 year ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
pinia-plugin-persistedstate
Posts with mentions or reviews of pinia-plugin-persistedstate.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-12-07.
-
Any advise when starting jumping in Vuex
If you use a standard Pinia store, you can use plug-ins. For example, you can use pinia-plugin-persistedstate to let the user start each new session where they left off. Or you can use pinia-orm to simplify handling large amounts of tabular data.
-
Is there a way to use $subscribe from Pinia in Nuxt 2 using Options API?
How about this plugin, then?: https://github.com/prazdevs/pinia-plugin-persistedstate.
-
What's your approach for choosing whether to make new child components "smart" or "dumb"? [example scenario inside]
When your application starts, fill your Pinia/Vuex store with data from the user's previous session. This is done automatically by pinia-plugin-persistedstate or the Vuex equivalent.
-
What are some of the best/most useful Vue libraries you've used?
pinia-plugin-persistedstate: keeps your Pinia store synced with the user's browser localStorage. In other words, if your user closes their browser and then returns to your Vue app later, they will have the same state as when they left.
-
Drag and drop
You also mentioned that the positions should be stored in localStorage. I would store the positions in Pinia, and then add the pinia-plugin-persistedstate plug-in. It's one import statement and one line of code to add that plugin, and then your Pinia state is automatically persisted in localStorage. It beats having to write and troubleshoot the storage logic yourself.
-
How do you persist Pinia state across reloads
I've used the pinia-plugin-persistedstate package and has worked fine for me.
-
Why won't my Vue 3 Pinia store persist state even with the Pinia Persisted State plugin?
I have a Vue 3 / TypeScript app that uses a combination of Firebase, Pinia, Vue Concurrency, and the Pinia Persisted State Plugin.
pinia-shared-state
Posts with mentions or reviews of pinia-shared-state.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-08-09.
- 🍍 A lightweight plugin to sync your pinia state across browser tabs.
-
Vue 3.2 introduces a new Effect Scope API that can capture reactive effects created within it so that these effects can be disposed together.
I love pinia and I've been making some plugins https://github.com/wobsoriano/pinia-shared-state
- 🍍 A lightweight module to sync your pinia state across browser tabs
What are some alternatives?
When comparing pinia-plugin-persistedstate and pinia-shared-state you can also consider the following projects:
vue-supabase-tpa-demo - Third-Party Authentication (Github) demo Vue 3 + TypeScript + Pinia app using Supabase
nuxt3-structure-modules-pinia - Using Modules and Pinia to structure Nuxt 3 app
quasar-pinia-persistedstate
pinia-xstate - Put your xstate state machines into a global pinia store.
localForage - 💾 Offline storage, improved. Wraps IndexedDB, WebSQL, or localStorage using a simple but powerful API.
pinia-orm - The Pinia plugin to enable Object-Relational Mapping access to the Pinia Store.