Skip to content
This repository has been archived by the owner on Nov 23, 2023. It is now read-only.

Use a diffing algorithm to show store mutation #2

Open
clmntcrl opened this issue Jan 30, 2019 · 0 comments
Open

Use a diffing algorithm to show store mutation #2

clmntcrl opened this issue Jan 30, 2019 · 0 comments

Comments

@clmntcrl
Copy link
Owner

clmntcrl commented Jan 30, 2019

Use Mirror to create a string representation of the AppState before and after dispatching action to reducers. Then create a string representation of the difference, and log it.

  1. Mirroring step should do its best to make output deterministic by stripping out pointer memory addresses, sorting non-deterministic data (like dictionaries, sets, ...), hide func and closure.

  2. Diffing representation could looks like Github unified view for commits, stating line with a + for additions, - for deletions and   if nothing has changed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant