Skip to content

Commit

Permalink
fix: do not mutate actions to add _getState, fix #1
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov committed Dec 29, 2017
1 parent 8e7c3bf commit c0a955c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const mount = (state, actions, view) => {

// add a utility action to get the current state
if (!actions._getState) {
actions._getState = () => state => state
actions = Object.assign({}, actions, { _getState: () => state => state })
}

cy
Expand Down

0 comments on commit c0a955c

Please sign in to comment.