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
Add note to the Document on this page.
AFAIK, this behavior isn't mentioned nor warned in the document.
Or if it is, it should be more emphasized.
Add another API that will accept React Component.
Make route.action accept React Component
I'm not sure these options are possible since this library is designed not only for React.
Though adding some React friendly wrapper API that'll accept it and make React users use that API will be enough.
Detect it is React Component or not before or during runtime before react warns it
I don't think this is possible
The text was updated successfully, but these errors were encountered:
Current routing API as below is quite misleading, because React users think
route.action
accepts React Component, but actually doesn't.Suggestion
there's several options to solve this.
AFAIK, this behavior isn't mentioned nor warned in the document.
Or if it is, it should be more emphasized.
I'm not sure these options are possible since this library is designed not only for React.
Though adding some React friendly wrapper API that'll accept it and make React users use that API will be enough.
I don't think this is possible
The text was updated successfully, but these errors were encountered: