redux-flipper icon indicating copy to clipboard operation
redux-flipper copied to clipboard

Diff tab should only show the different nodes

Open demedos opened this issue 3 years ago • 2 comments

GIVEN the following store

{
  todos: [{ title: "laundry"}, { title: "other stuff"}],
  done: [{ title: "groceries" }],
}

GIVEN an action that updated the first todo's title has been dispatched producing the following store

{
  todos: [{ title: "walk the dog"}, { title: "other stuff"}],
                 // ^^^^^^^^^^^ That's the only change
  done: [{ title: "groceries" }],
}

the EXPECTED Diff tab content shows only the changes

{
-  todos: [{ title: "laundry" }]
+  todos: [{ title: "walk the dog" }]
}

demedos avatar Feb 16 '22 12:02 demedos

This is similar to how redux-logger handles the diff view

demedos avatar Feb 16 '22 12:02 demedos

Thanks for the feedback. Will take a look for it.

plwai avatar Mar 03 '22 13:03 plwai