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

Disabling printing the errors via a boolean flag #1496

Closed
BjoernRave opened this issue Oct 31, 2024 · 1 comment
Closed

Disabling printing the errors via a boolean flag #1496

BjoernRave opened this issue Oct 31, 2024 · 1 comment
Labels
enhancement New feature or request unconfirmed Needs triage.

Comments

@BjoernRave
Copy link

BjoernRave commented Oct 31, 2024

Is your feature request related to a problem? Please describe.

Currently its possible to disable next-intl to log the errors it encounters by passing a custom onError event handler. However when in the app router on a server component it errors, as you are not allowed to pass event handlers there.

Screenshot 2024-10-31 at 13 14 32

Describe the solution you'd like

Provide a simple boolean field to disable logging of errors

Describe alternatives you've considered

Putitng the provider inside a client compponent, but its more tedious

@BjoernRave BjoernRave added enhancement New feature or request unconfirmed Needs triage. labels Oct 31, 2024
@amannn
Copy link
Owner

amannn commented Oct 31, 2024

Yep, I agree this is currently a bit tedious. This is tracked in #1285.

@amannn amannn closed this as completed Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request unconfirmed Needs triage.
Projects
None yet
Development

No branches or pull requests

2 participants