rfcs
pinia
Our great sponsors
rfcs | pinia | |
---|---|---|
74 | 33 | |
4,828 | 12,273 | |
0.3% | 1.7% | |
2.9 | 9.2 | |
about 2 months ago | 14 days ago | |
TypeScript | ||
- | 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.
rfcs
-
Svelte 5: Runes
```
We started experimenting with this ling of thought almost 3 years ago:
- First take (ref sugar), Nov 2020: https://github.com/vuejs/rfcs/pull/228
- Take 2, Aug 2021: https://github.com/vuejs/rfcs/pull/368
- Take 3, Nov 2021: https://github.com/vuejs/rfcs/discussions/369
We provided it as an experimental feature and had a decent number of users trying it out in production. The feedback wasn't great and eventually decided to drop it. https://github.com/vuejs/rfcs/discussions/369#discussioncomm...
- A quick look at the new defineModel in Vue 3.3
-
Vue.js Reactivity System: Ref, reactive, shallowRef, & shallowReactive
This is a personal preference, but I use ref almost all the time. Despite tediously writing the .value to access the ref’s value, the Vue team is aware of the problem, and the open RFC - Reactivity Transform, was aiming to solve this issue, however, seems like it was abandoned.
-
This New Vue 3.3 defineModel Macro Will Change The Way You Write Your Co...
To stay updated, follow the RFC at https://github.com/vuejs/rfcs/discussions/503.
-
The Rear-Vue Mirror: My Open-Source Origin Story
This was a good change. Evan has always been extremely good at putting his finger on the pulse of the frontend community. If there's a feature or paradigm that people love that would fit in Vue, Evan will incorporate it. Over the years, Vue has implemented (and sometimes later deprecated) dependency injection, JSX support, custom elements, Angular-style class components, Svelte-style ref sugar, and now Solid-inspired compiler optimizations. They even changed the order of a Vue file to match that of Svelte: first the script, then the template.
- Generic Vue components expected to land in v3.3 (finally!)
-
VUE3 goes back to callbacks instead of events?
Now the $on has been removed, but the event subject is causing some confusion, see: https://github.com/vuejs/rfcs/discussions/397
-
10 Mistakes to Avoid When Starting with Vue 3
The RFC has shown that this feature is very controversial, with lots of implications. Personally, I liked it at first, but now I'm against it.
-
Vue 2 end of life December 2023
Here is the Current language: https://github.com/vuejs/rfcs/blob/function-apis/active-rfcs/0000-function-api.md
-
Should we migrate from Vue2 to Vue3 for the current projects we have or just wait till the community gets stabilized?
Plus, even that there is a real possibility that the controversial Reactivity Transform RFC leads to a Vue 4 version, it is likely to bring just minor breaking changes from Vue 3.
pinia
-
Better DX in Vue apps with Vite Devtools
Pinia tab is a feature integrated with Pinia, allowing you to view the registered modules and their details.
- [Vue Js] Comment se moquer de Pinia pour un composant d'essai d'union avec le plus vibré plus vitreux et le plus
-
Alternative libs to migrate from React to Vue (or Vue to React)
pinia
-
Learning React
If you like Vuex, you'll love Pinia (the new official Vue state management library). At least, I enjoyed recently migrating my personal app from Vuex to Pinia. Pinia is even simpler / more straightforward than Vuex (and even more so compared to Redux).
- Pinia setup or option?
-
Can't v-model to pinia store variables
Related
-
Making Nuxt.js clone with Vue 3 and Vite (Vue Server Side Rendering)
const authMiddleware: Middleware = ({ pinia }) => { // !!! Important !!! // tell all the stores you are contacting // Pinia instance, otherwise you will have problems because Pinia will access the global object // https://github.com/vuejs/pinia/blob/8626aac0049243de231401a01fe20092eeaf279c/packages/pinia/src/store.ts#L870 if (!authStore(pinia).isAuth) { return { path:'/login', status: 401, } } }
-
[h3] [unhandled] H3Error: __vite_ssr_import_0__.defineStore is not a function
When installing the "pinia" package via npm i pinia, I got a bunch of errors, similar to what's described here. This seems to be an issue with npm. Solution to that : install using yarn add -D pinia
-
The Future of State Management in Vue.js
Does using the main branch of pinia fix your issue? Over aggressive unwrapping was changed in https://github.com/vuejs/pinia/pull/1444
-
How to mock pinia for uniting test component with vitest and Testing-Library
Also, I tried one syntax based on : https://github.com/vuejs/pinia/discussions/1096
What are some alternatives?
volar - ⚡ Explore high-performance tooling for Vue [Moved to: https://github.com/vuejs/language-tools]
effector-react - Business logic with ease ☄️
unplugin-auto-import - Auto import APIs on-demand for Vite, Webpack and Rollup
vuex - 🗃️ Centralized State Management for Vue.js.
pinia-shared-state - 🍍 Sync your Pinia state across browser tabs.
vuex-orm - The Vuex plugin to enable Object-Relational Mapping access to the Vuex Store.
react-18 - Workgroup for React 18 release.
composition-api - Composition API plugin for Vue 2
unplugin-vue-components - 📲 On-demand components auto importing for Vue
harlem - Powerfully simple global state management for Vue 3