redux-devtools
redux-devtools copied to clipboard
[Feature request] Display store size
I've been working on an application where the redux store is multi mega bytes and researching ways to reduce the store size by refactoring code etc.
Although we can determine the store size using alternate techniques, would love to see that in built in the devtools. Also, it would help if we have sizes of the individual slices of the stores listed too. One thought is the object size(s) are displayed within the State tab (listed alongside the object names).
Thanks for the wonderful tool..
Thanks for the suggestion. It would be rather useful indeed to have implemented as a separate monitor. Something which would work like source-map-explorer
or even more interactive like webpack-bundle-analyzer
or webcomponent-bundle-analyzer
. For measuring the size we could use object-sizeof
or this gist.
Let me know if you'd like to create a monitor, I'd help with redux devtools part.
would love to see this as well
I'm very interested in workin on a monitor for this.
I wrote a redux middleware to calculate the total size of the store and size delta between actions. Having this in redux-devtools by default would be great.
It would be great if there's a breakdown of the size of the state JSON object. Maybe something like this:
https://www.debugbear.com/json-size-analyzer
+1 to this feature request!
+1 from me as well
+1's aren't really helpful at this point :)
That said, perhaps a good way to implement this might be a separate "monitor" panel?
+1 , if so , implementation will be helpful
Just wondering if there is any solution for this yet?