redux-thunk vs vuex: What are the differences?
redux-thunk: Thunk middleware for Redux. Redux Thunk middleware allows you to write action creators that return a function instead of an action. The thunk can be used to delay the dispatch of an action, or to dispatch only if a certain condition is met. The inner function receives the store methods dispatch and getState as parameters; 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.
redux-thunk and vuex belong to "State Management Library" category of the tech stack.
redux-thunk and vuex are both open source tools. It seems that vuex with 20.9K GitHub stars and 6.76K forks on GitHub has more adoption than redux-thunk with 12.6K GitHub stars and 682 GitHub forks.
According to the StackShare community, vuex has a broader approval, being mentioned in 51 company stacks & 79 developers stacks; compared to redux-thunk, which is listed in 10 company stacks and 19 developer stacks.
Sign up to add or upvote prosMake informed product decisions
What is redux-thunk?
What is vuex?
Need advice about which tool to choose?Ask the StackShare community!
Sign up to get full access to all the companiesMake informed product decisions