You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the case of a bug report, I understand that providing a SSCCE example is tremendously useful to the maintainers.
Description
When inputting an uiSchema where ui:widget is of non-existing or non-registered type, I get the error: No widget <widget> for type <type>, thrown by getWidget() in the render() method of some component. I would like to catch it, but I was not able either via try/catch of my component rendering <Form/> (which I do understand given the async nature or React rendering), nor by the experimental unstable_handleError() in React 15+.
Steps to Reproduce
I cannot reproduce it in the playground.
Expected behavior
Possibility to catch the un-existing widget error.
Actual behavior
An error is thrown.
Version
0.49.0
The text was updated successfully, but these errors were encountered:
I understood on my own I guess: the trick (also applied in the playground example) is using a try/catch block inside a setImmediate() one, for a component wrapping <Form/>:
Prerequisites
Description
When inputting an uiSchema where
ui:widget
is of non-existing or non-registered type, I get the error:No widget <widget> for type <type>
, thrown bygetWidget()
in therender()
method of some component. I would like to catch it, but I was not able either viatry/catch
of my component rendering<Form/>
(which I do understand given the async nature or React rendering), nor by the experimentalunstable_handleError()
in React 15+.Steps to Reproduce
I cannot reproduce it in the playground.
Expected behavior
Possibility to catch the un-existing widget error.
Actual behavior
An error is thrown.
Version
0.49.0
The text was updated successfully, but these errors were encountered: