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
React Router currently expects a function as a component for Routes. However, React.forwardRef returns an object instead of a function, which then fails the prop type validation. See remix-run/react-router#6384 for more details
In other words, if you wrap a component in @Cancelable, you'll get a proptype warning if you use that component in <Route path="/" component={WrappedComponent} /> since v4 is now using the forward ref API.
The text was updated successfully, but these errors were encountered:
React Router currently expects a
function
as a component forRoute
s. However,React.forwardRef
returns an object instead of a function, which then fails the prop type validation. See remix-run/react-router#6384 for more detailsIn other words, if you wrap a component in
@Cancelable
, you'll get a proptype warning if you use that component in<Route path="/" component={WrappedComponent} />
since v4 is now using the forward ref API.The text was updated successfully, but these errors were encountered: