From 057ee453ebd80438d67c796e87ff343ed372550f Mon Sep 17 00:00:00 2001 From: "Lajos.Meszaros" Date: Fri, 21 Sep 2018 09:01:11 +0200 Subject: [PATCH] fix(events): reversed the order of 'removed' events --- src/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 0a95930..f6cd6c5 100644 --- a/src/index.js +++ b/src/index.js @@ -12,7 +12,8 @@ import { without, propEq, concat, - __ + __, + reverse } from 'ramda' // ------------- @@ -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,