Open aeneasr opened 6 years ago
redux-devtools-extension accepts a serialize
option parameter to avoid that.
This is useful when the payload is an error (this can be the case with Flux Standard Actions).
Currently, errors actions are not very useful is devtools:
With redux-devtools-extension, this is a bit better (but not ideal as the stack trace is missing):
Suppose
With an appropriate reducer, something like (pseudocode):
Now we select the state somewhere and want to yield the error. This works as long the remote devtools middleware is disabled. As soon as it's enabled,
action.payload
is an empty object{}
(the result you get when runningJSON.parse(new Error('foo'))
. For now I switched to devtools-extensions to fix this.