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
Maybe capture error & warn instead of throw? #109
Comments
Yes this is intentional, it's an early throw since the underlying There's other discussions that have brought up error/warn handling — so we're thinking about it. |
@ericf possible to support a |
I don't understand what you're proposing… can you explain in more detail? |
oh so something like |
ping @ericf :) |
What are the actual real-world use cases where you're seeing |
@ericf The real world use case is rather simple: Say I fetch some data from the server that has a field called However, if Currently to overcome this issue we have to wrap For other React components, if given an invalid data type it would just render nothing ( |
uses |
See: #162 |
Hi @ericf ,
Quick question/suggestion: on this line react-intl actually
throw
s error for invalid input. Is this by design? If yes any chance we can be a bit more forgiving andwarn
instead ofthrow
? The reason is that this gets bubbled up and croak the server/create unexpected behavior on client and with the React stack trace bloat it's incredibly difficult to trace it.Thanks!
The text was updated successfully, but these errors were encountered: