Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support vuex state #1771

Open
wants to merge 1 commit into
base: master
from
Open

feat: support vuex state #1771

wants to merge 1 commit into from

Conversation

@Shyam-Chen
Copy link

Shyam-Chen commented Mar 27, 2018

// mutations.js
// @flow

import { ICounter } from './constants';

export default {
  increment(state: ICounter): void {
    state.value += 1;
  },
  decrement(state: ICounter): void {
    state.value -= 1;
  },
};
@ljharb
Copy link
Collaborator

ljharb commented Mar 27, 2018

Is Vuex different from Vue?

@Shyam-Chen
Copy link
Author

Shyam-Chen commented Mar 27, 2018

Vuex is a state management for Vue, similar to Redux + MobX.

@ljharb
Copy link
Collaborator

ljharb commented Mar 27, 2018

“state” seems like a very generic argument name :-/ I’m a bit concerned about the continued expansion of this list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.