redux-devtools
redux-devtools copied to clipboard
Multiple spaces in a string are displayed as one in the Tree View
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
Tree View
Maybe white-space: pre could be useful here:
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.