pinia-plugin-persistedstate
formkit
pinia-plugin-persistedstate | formkit | |
---|---|---|
8 | 36 | |
1,799 | 4,051 | |
- | 1.1% | |
6.9 | 9.7 | |
25 days ago | 5 days ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
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
-
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.
formkit
-
A simple Vue form validation composable with Zod
The Vue ecosystem is packed with many great form validation libraries, VeeValidate, Vuelidate, and FormKit just to name a few.
-
Vue UI kits/component libraries?
if you're going to be dealing with forms then FormKit (not a UI library) is worth your time. It's an architecture-first form framework — can be used with any UI library if you prefer.
-
Nuxt UI is one of the best UI libraries out there
I probably say this too often, but I'm fascinated by how much the Vue ecosystem has been thriving lately. Recent releases of such awesome libraries like FormKit or Radix Vue are great examples of how well the Vue ecosystem has matured lately.
- Celebrate Vue.js with us Support devs and projects, and win cool stuff
-
Create a custom toggle input for Vue FormKit using Headless UI
FormKit is a library that helps you build complex forms in Vue. It is built on top of Vue 3 and uses the composition API. It is very easy to use and has a lot of features. You can check out Formkit Website for more information.
-
Help a fellow backend dev chose a frontend framework for his personal project
If you're in the Vue space (and you will be if you're using Nuxt) then I highly recommend checking out FormKit (I'm one of the maintainers). It's not a UI library — it's a framework for managing your form architecture and data. Forms are some of the most complicated front-end work you'll do if you do them well and FormKit will save you many many tears. If you want a quick primer on "why formkit?" here's a 3-minute video that demonstrates how much simpler a FormKit form will be to manage vs one hand-written in Vue.
-
From React to Vue
If your project requires building forms then FormKit can save you a lot of effort.
-
Using Zod with FormKit
Starting with Beta 17 — FormKit ships with a new Zod plugin that you can use to validate your forms.
-
There's got to be a simpler way to make a responsive textarea...right? Right???
Unironically this, but it's called FormKit. 🥲
-
Vuejs themes and frameworks
When you get to doing the forms in your project be sure to give FormKit a look!
What are some alternatives?
quasar-pinia-persistedstate
vee-validate - ✅ Painless Vue forms
localForage - 💾 Offline storage, improved. Wraps IndexedDB, WebSQL, or localStorage using a simple but powerful API.
vue-openapi-form - A Vue component to generate html form using OpenAPI v3 schema
pinia-shared-state - 🍍 Sync your Pinia state across browser tabs.
auto-animate - A zero-config, drop-in animation utility that adds smooth transitions to your web app. You can use it with React, Vue, or any other JavaScript application.
vue-supabase-tpa-demo - Third-Party Authentication (Github) demo Vue 3 + TypeScript + Pinia app using Supabase
vue-good-table - An easy to use powerful data table for vuejs with advanced customizations including sorting, column filtering, pagination, grouping etc
vuelidate - Simple, lightweight model-based validation for Vue.js
pinia-plugin-persistedstate-2 - [no longer maintained] Please use https://github.com/prazdevs/pinia-plugin-persistedstate instead.
json-editor - JSON Schema Based Editor