Skip to content

fluent-react: Report errors from Localized and getString #412

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

Merged

Conversation

stasm
Copy link
Contributor

@stasm stasm commented Jul 29, 2019

Another bug found in https://bugzilla.mozilla.org/show_bug.cgi?id=1568914. In #390 we made formatPattern throw when errors is not passed as the third argument. React doesn't like it when things throw in render. Let's console.warn the errors for now, and then let allow more control over error reporting in #411.

@stasm stasm force-pushed the fluent-react-errors branch from 97adc67 to b68d4d9 Compare July 29, 2019 13:42
@stasm stasm requested a review from Pike July 29, 2019 13:47
@stasm stasm merged commit bb3b961 into projectfluent:release-fluent-zero-thirteen Jul 29, 2019
@stasm stasm deleted the fluent-react-errors branch July 29, 2019 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants