valtio icon indicating copy to clipboard operation
valtio copied to clipboard

[devtools] Trace support

Open BrianHung opened this issue 2 years ago • 1 comments

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
      )

BrianHung avatar Jan 20 '22 09:01 BrianHung

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

Aslemammad avatar Apr 29 '22 06:04 Aslemammad

Let's reopen once https://github.com/reduxjs/redux-devtools/pull/1369 is published.

dai-shi avatar Aug 12 '23 06:08 dai-shi