direct-vuex
Use and implement your Vuex store with TypeScript types. Compatible with the Vue 3 composition API. (by paroi-tech)
harlem
Powerfully simple global state management for Vue 3 (by andrewcourtice)
direct-vuex | harlem | |
---|---|---|
2 | 11 | |
258 | 517 | |
0.0% | - | |
0.0 | 0.0 | |
almost 4 years ago | 8 months ago | |
TypeScript | TypeScript | |
Creative Commons Zero v1.0 Universal | 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.
direct-vuex
Posts with mentions or reviews of direct-vuex.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-04-07.
-
How to Protect State in Pinia
Pinia is a relatively new state management tool for the Vue ecosystem. It is the new preferred state management tool recommended by the Vue core team replacing Vuex. Compared to Vuex, Pinia is type-safe by default (direct-vuex was needed to make Vuex type-safe), extremely lightweight, and modular by design (meaning you can create multiple stores instead of multiple modules inside one store, which optimises performance). Similar to Vuex, Pinia has state, computed properties (getters) and methods (mutations and actions). Read more about Pinia and its usage to understand the similarities and differences between Pinia and Vuex.
-
Best Store Option for Vue3 with Typescript
I then found several small community projects (1 2 3) which look like they perform that boilerplate for you and... not much else. They also require their own additional npm import, which isn't ideal.
harlem
Posts with mentions or reviews of harlem.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-02-27.
-
Harlem v3.0 Released
Check it out at harlemjs.com or view the demo app.
-
State management in Vue 3 with Harlem.js 📦
Truth is, the solution you use doesn't matter as much as how you use it. However, good starting point would be to check out Pinia and Harlem, two most popular state management libraries in Vue 3
-
Cancelling network requests using Harlem actions
In this article I will explain how Harlem leverages the AbortController to create a robust and elegant async cancellation pattern through the use of actions.
-
Best Store Option for Vue3 with Typescript
I've also written a state management called Harlem which is designed specifically to work well with TypeScript: https://harlemjs.com
- Harlem State Management for Vue 3 – Version 2 Released
-
Official: "Announcement: we are planning to release the Vue 3 migration build next week. It is a build of Vue 3 that provides configurable v2 compatible behavior."
HarlemJs
-
Vue 3 Composition API and Global State Management without Vuex
Shameless plug: if you're still wanting a non-Vuex state solution but don't want to write your own, I've written one you can use: Harlem.
-
Vue 3 State Management using Harlem
From here you can extend Harlem through the use of plugins to include Vue devtools integration, server-side rendering, storage sync, transactions, snapshots and resetting.
What are some alternatives?
When comparing direct-vuex and harlem you can also consider the following projects:
vuex-module-decorators - TypeScript/ES7 Decorators to create Vuex modules declaratively
pinia - 🍍 Intuitive, type safe, light and flexible Store for Vue using the composition api with DevTools support
diffx - A state management library for React, Vue.js, Svelte, Angular and vanilla javascript
pinia-undo - 🍍 Undo/Redo plugin for pinia.
typesafe-vuex - A simple way to get static typing, static code analysis and intellisense with Vuex library - maintained fork of vuex-typescript
pinia-shared-state - 🍍 Sync your Pinia state across browser tabs.
vuexok
effector-react - Business logic with ease ☄️
ocula - The free and open-source progressive weather app