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
And fails silently for any invalid prop passed to Link, since it ends up with a TMono(null) for props which will accept anything.
It will assume a type based on the prop value, which will also lead to compilation errors if some props can have a class as a value (ReactNode accepting a component class, for example), which will break with "Type not found : Class<my.pack.Component>".
Currently this is handled with a warning when such a thing is detected. Warnings can be disabled with -D react_ignore_failed_props_inference.
The text was updated successfully, but these errors were encountered:
Type checker for props fails to handle this kind of props:
And fails silently for any invalid prop passed to
Link
, since it ends up with aTMono(null)
for props which will accept anything.It will assume a type based on the prop value, which will also lead to compilation errors if some props can have a class as a value (
ReactNode
accepting a component class, for example), which will break with"Type not found : Class<my.pack.Component>"
.Currently this is handled with a warning when such a thing is detected. Warnings can be disabled with
-D react_ignore_failed_props_inference
.The text was updated successfully, but these errors were encountered: