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

[REFACTOR] Mutations now accept the server config #20

Merged
merged 2 commits into from
Sep 6, 2018

Conversation

olavoasantos
Copy link
Owner

Description

Mutation functions now accept the server config as the second argument.

Proposed API

const Model = {
  ...
  mutations: {
    column: (value, config) => {
      config.get(...); // server config
      return value;
    },
  },
  ...
}

@olavoasantos olavoasantos added refactor Improving a current implementation done labels Sep 6, 2018
@olavoasantos olavoasantos self-assigned this Sep 6, 2018
@olavoasantos olavoasantos merged commit a0dbc17 into master Sep 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
done refactor Improving a current implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant