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

#36 Actions should return the value through vuex #56

Merged

Conversation

rumbcam
Copy link

@rumbcam rumbcam commented Nov 20, 2018

I've fixed it so that @actions will return, but @MutationAction will not return as I figure that a MutationAction is designed to mutate the state and you should then access the value off the state not from the returned value from the action. I have also added a test of my own to test the MutationAction

@codecov
Copy link

codecov bot commented Nov 20, 2018

Codecov Report

Merging #56 into master will increase coverage by 0.17%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #56      +/-   ##
==========================================
+ Coverage   74.49%   74.66%   +0.17%     
==========================================
  Files           9        9              
  Lines         149      150       +1     
  Branches       37       37              
==========================================
+ Hits          111      112       +1     
  Misses         19       19              
  Partials       19       19
Impacted Files Coverage Δ
src/action.ts 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5b671ca...f07f0e0. Read the comment docs.

Jens Struwe and others added 3 commits November 22, 2018 20:19
@MutationAction should not return the returned action as it should be accessed from the state after it was mutated
@rumbcam rumbcam force-pushed the feature/actions-should-return branch from afc6426 to f07f0e0 Compare November 23, 2018 03:20
@championswimmer championswimmer merged commit 108e7ec into championswimmer:master Nov 24, 2018
@rumbcam rumbcam deleted the feature/actions-should-return branch November 29, 2018 04:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants