reduxjs / redux-devtools

DevTools for Redux with hot reloading, action replay, and customizable UI
http://youtube.com/watch?v=xsSnOQynTHs
MIT License
13.98k stars 1.15k forks source link

Multiple spaces in a string are displayed as one in the Tree View #1584

Open reekystive opened 8 months ago

reekystive commented 8 months ago

In the Tree View, although I've set multiple spaces in the state, only one is displayed, which was confusing until I verified in the Raw View that the spaces were indeed present, indicating the issue isn't with my code. The store displays correctly in the Raw View.

Raw View

image

Tree View

image

reekystive commented 8 months ago

Maybe white-space: pre could be useful here:

image

morzel85 commented 2 months ago

The problem with pre is that it could take a lot of space if there are line breaks. The way raw view shows it is cool: displays spaces and /n escape sequence.