zalmoxisus/redux-devtools-extension

Complex objects unexpectedly represented as strings

Open

#468 aperta il 7 mar 2018

Vedi su GitHub
 (13 commenti) (0 reazioni) (1 assegnatario)JavaScript (1074 fork)batch import
help wantedmonitor

Metriche repository

Star
 (13.478 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Hi @zalmoxisus, thanks for this fantastic extension! I've been using the redux-devtools-extension for around 1.5 years and found it really useful.

One thing that has always bothered me is that complex objects appear to be represented as strings. For example, when storing a Date in the state, the devtools show you its toString() rather than the object itself. This can make it hard to know whether you've persisted the correct type of data into the store, which has helped create a few bugs for me in the past. I'd much rather be shown a plain object (even though that would be more messy) and only see a string when the data in the store is actually a string.

If there isn't already an established solution to this, would you be open to me submitting a PR?

Thanks for your help!

Guida contributor