pinia-plugin-persistedstate
💾 Configurable persistence and rehydration of Pinia stores. (by prazdevs)
Vue.Draggable
Vue drag-and-drop component based on Sortable.js (by SortableJS)
pinia-plugin-persistedstate | Vue.Draggable | |
---|---|---|
8 | 11 | |
2,275 | 20,312 | |
2.9% | 0.2% | |
8.9 | 0.0 | |
9 days ago | about 1 year ago | |
TypeScript | JavaScript | |
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.
Vue.Draggable
Posts with mentions or reviews of Vue.Draggable.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-12-07.
- How to use Nodemailer with Cypress 10?
-
What are some of the best/most useful Vue libraries you've used?
Vue Draggable is a library I seem to use constantly. If you need draggabilty then it’s a nice one to have. Changed a bit for vue 3 but still very useful.
-
VueJS animation when moving rendered items from an array
U might search for something like this https://github.com/SortableJS/Vue.Draggable
-
How can I move "questions" to another topic with Vuejs 3 and vuedraggable?
Check out this example https://github.com/SortableJS/Vue.Draggable/blob/master/example/components/two-lists.vue
-
Let's create our own Vue JS plugin
If you're using Vue JS for a while then you have probably used some plugins with it as well. For example the Vue Router is a plugin. And there are many other useful plugins available like vue-infinite-loading, vuedraggable etc. But sometimes you might not have a plugin available for your need in that case you'd have to write your own plugin. And guess what? To create a Vue plugin all you have to do is create a JavaScript file that exports a object with a install method in it. So inside the src folder let's create a folder called plugins and inside that will have a JavaScript file named MyPlugin.js
-
Creating a sortable list using VueJS
The output should look something like this But the list is not sortable so let make is sortable now. To do that we are going to use Vue.Draggable so install it by running npm i vuedraggable. Now you can import it and use it like a component. So to make our list sortable we simply have to wrap our list with draggable and we also have to use our todos for its v-model
-
Is there a library that works with Bootstrap-Vue b-table to make the rows drag-and-drop?
But if you're looking for Vue specific solution, you can take a look at Vue.Draggable - VueJS 2 version, Vue 3 version which is also based on SortableJS library.
-
Does anyone know which Vue.JS package is used on DrawSql.app?
They might have used something like this for the list drag and drop.
-
Treeview with drag and drop?
Maybe look at the nested list function of https://github.com/SortableJS/Vue.Draggable
-
How to use vue draggable with vue router?
Maybe check out vue sortable instead of draggable. I think it covers your needs and it works with one wrap around your components. https://github.com/SortableJS/Vue.Draggable
What are some alternatives?
When comparing pinia-plugin-persistedstate and Vue.Draggable you can also consider the following projects:
vue-supabase-tpa-demo - Third-Party Authentication (Github) demo Vue 3 + TypeScript + Pinia app using Supabase
sortablejs - Reorderable drag-and-drop lists for modern browsers and touch devices. No jQuery or framework required.
pinia-shared-state - 🍍 Sync your Pinia state across browser tabs.
formkit - Vue Forms ⚡️ Supercharged
quasar-pinia-persistedstate
Dragula - :ok_hand: Drag and drop so simple it hurts