Flux vs vuex: What are the differences?
What is Flux? Application Architecture for Building User Interfaces. Flux is the application architecture that Facebook uses for building client-side web applications. It complements React's composable view components by utilizing a unidirectional data flow. It's more of a pattern rather than a formal framework, and you can start using Flux immediately without a lot of new code.
What is vuex? Centralized State Management for Vue.js. Vuex is a state management pattern + library for Vue.js applications. It serves as a centralized store for all the components in an application, with rules ensuring that the state can only be mutated in a predictable fashion. It also integrates with Vue's official devtools extension to provide advanced features such as zero-config time-travel debugging and state snapshot export / import.
Flux and vuex are both open source tools. It seems that vuex with 20.9K GitHub stars and 6.77K forks on GitHub has more adoption than Flux with 16.2K GitHub stars and 3.62K GitHub forks.
According to the StackShare community, vuex has a broader approval, being mentioned in 51 company stacks & 80 developers stacks; compared to Flux, which is listed in 67 company stacks and 29 developer stacks.
Sign up to add or upvote prosMake informed product decisions
Sign up to add or upvote consMake informed product decisions
What is Flux?
What is vuex?
Sign up to get full access to all the companiesMake informed product decisions