redux-flipper
redux-flipper copied to clipboard
Diff tab should only show the different nodes
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" }]
}
This is similar to how redux-logger handles the diff view
Thanks for the feedback. Will take a look for it.