valtio
valtio copied to clipboard
[devtools] Trace support
One useful feature of redux devtools is tracing: it essentially gives you the stack trace of an action / mutation.
https://github.com/reduxjs/redux-devtools/blob/main/extension/docs/Features/Trace.md
Note that the following does not work. I naively tried modifying utils/devtools
and adding
const devtools = extension.connect({ name, trace: true })
but this does not work as it results in a trace in the same file of
devtools.send(
{
type: action,
updatedAt: new Date().toLocaleString(),
},
snapWithoutDevtools
)
As mentioned in the PR, this issue relies on https://github.com/reduxjs/redux-devtools/issues/1100 which seems that the redux devtools team are not around it! so I guess we can leave this powerful feature for now! let me know if I'm wrong!
cc @dai-shi
Let's reopen once https://github.com/reduxjs/redux-devtools/pull/1369 is published.