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

[Feature request] Display store size

Open broyda opened this issue 8 years ago • 9 comments

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..

broyda avatar Feb 09 '17 22:02 broyda

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.

zalmoxisus avatar Feb 15 '17 11:02 zalmoxisus

would love to see this as well

ChuckJonas avatar Nov 30 '17 00:11 ChuckJonas

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.

venku122 avatar Sep 06 '19 17:09 venku122

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

Screenshot 2020-02-14 at 11 40 47

gianpaj avatar Feb 14 '20 11:02 gianpaj

+1 to this feature request!

corbinschwartz avatar Sep 21 '21 13:09 corbinschwartz

+1 from me as well

yonatann avatar Jun 07 '22 08:06 yonatann

+1's aren't really helpful at this point :)

That said, perhaps a good way to implement this might be a separate "monitor" panel?

markerikson avatar Jun 07 '22 13:06 markerikson

+1 , if so , implementation will be helpful

jainprashul avatar Feb 08 '23 11:02 jainprashul

Just wondering if there is any solution for this yet?

iftikharrasha avatar Mar 22 '24 18:03 iftikharrasha