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

[BUG] Unable to access error object #461

Closed
fredachang opened this issue May 20, 2024 · 1 comment
Closed

[BUG] Unable to access error object #461

fredachang opened this issue May 20, 2024 · 1 comment
Labels
bug Something isn't working released

Comments

@fredachang
Copy link

Hi Petyo,

Hoep you've been well. I want to get access to the onError object as per the documentation so I can pass a custom call back to handle the error. However, I cannot seem to access the call back at all, even with just a simple console.log in the call back. Your help would be appreciated.

Cheers

  • [x ] I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
  • [x ] I have read the documentation and cannot find an answer.

Describe the bug
Cannot get access to the error payload object with the onError call back.

Reproduction
https://codesandbox.io/p/sandbox/mdx-editor-catch-all-plugin-forked-qg8fdl?file=%2Fsrc%2FApp.tsx%3A14%2C11

To Reproduce
Steps to reproduce the behavior:

  1. Introduce a thematic break error (where the plug in is not added to the mdx editor)
  2. pass a console.log call back to onError
  3. Check console -> no errors shown

Expected behavior
console.log of the error object

Additional context
Using next.js

@fredachang fredachang added the bug Something isn't working label May 20, 2024
Copy link

🎉 This issue has been resolved in version 3.3.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released
Projects
None yet
Development

No branches or pull requests

1 participant