Skip to content

Commit

Permalink
Merge pull request #30 from jackielii/patch-1
Browse files Browse the repository at this point in the history
only stringify action when wasMutated. fix #29
  • Loading branch information
leoasis authored Sep 26, 2017
2 parents e885777 + e007b91 commit cda52f6
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 @@ -47,7 +47,7 @@ export default function immutableStateInvariantMiddleware(options = {}) {
// Track before potentially not meeting the invariant
tracker = track(state);

invariant(
result.wasMutated && invariant(
!result.wasMutated,
INSIDE_DISPATCH_MESSAGE,
(result.path || []).join('.'),
Expand Down

0 comments on commit cda52f6

Please sign in to comment.