Skip to content

Commit

Permalink
fix(cerebral): handle hot reload merge case where next changed from o…
Browse files Browse the repository at this point in the history
…rigin
  • Loading branch information
christianalfoni committed Oct 10, 2019
1 parent 9319a02 commit d722549
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/node_modules/cerebral/src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,11 @@ export function getStateChanges(originState, oldState, nextState) {
path: path.slice(),
value: old,
})
} else if (next !== origin) {
changes.push({
path: path.slice(),
value: next,
})
}
}

Expand Down

0 comments on commit d722549

Please sign in to comment.