jk-gan / redux-flipper

Redux middleware for React Native for Flipper
MIT License
158 stars 21 forks source link

Diff tab should only show the different nodes #61

Open demedos opened 2 years ago

demedos commented 2 years ago

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 commented 2 years ago

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

plwai commented 2 years ago

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