Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trace function does not get action arg #1100

Open
Aslemammad opened this issue Feb 26, 2022 · 1 comment · May be fixed by #1369
Open

Trace function does not get action arg #1100

Aslemammad opened this issue Feb 26, 2022 · 1 comment · May be fixed by #1369

Comments

@Aslemammad
Copy link

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
Copy link
Author

Any update on this? any work needed in case?

meluskyc added a commit to meluskyc/redux-devtools that referenced this issue Mar 12, 2023
@meluskyc meluskyc linked a pull request Mar 12, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants