redux-devtools icon indicating copy to clipboard operation
redux-devtools copied to clipboard

Trace function does not get `action` arg

Open Aslemammad opened this issue 2 years ago • 1 comments

For some edge cases where stack trace cannot be obtained with just Error().stack, you can pass a function as trace with your implementation. It's useful for cases where the stack is broken, like, for example, when calling setTimeout. It takes action object as argument and should return stack string. This way it can be also used to provide stack conditionally only for certain actions.

Hey, In docs mention that trace function gets the action as an argument! but in this repro, it doesn't!

codesandbox, check out the logs.

Thanks for the amazing extension!

Aslemammad avatar Feb 26 '22 19:02 Aslemammad

Any update on this? any work needed in case?

Aslemammad avatar Mar 30 '22 22:03 Aslemammad