Skip to content

Commit

Permalink
fix(events): reversed the order of 'removed' events
Browse files Browse the repository at this point in the history
  • Loading branch information
meszaros-lajos-gyorgy committed Sep 21, 2018
1 parent 7342059 commit 057ee45
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ import {
without,
propEq,
concat,
__
__,
reverse
} from 'ramda'

// -------------
Expand All @@ -22,6 +23,7 @@ const diff = (virtualCtxA, virtualCtxB) => {
const b = map(JSON.stringify, virtualCtxB._.events.data)

const removed = compose(
reverse,
reject(propEq('eventName', EVENTS.NOP)),
map(compose(
invertEvent,
Expand Down

0 comments on commit 057ee45

Please sign in to comment.