-
-
Notifications
You must be signed in to change notification settings - Fork 91
[With React-router] Warning: Failed prop type: Invalid prop component
of type object
supplied to Route
, expected function
.
#12
Comments
component
of type object
supplied to Route
, expected function
.component
of type object
supplied to Route
, expected function
.
Thanks for the report. The |
I've prepared code sandbox for a comparison. There is an copy of our observer without https://codesandbox.io/s/x7ox551ypo I will try to open issue with React first and see that happens. |
Thanks for the quick reply. But consider it renders without problem, could it be a react-router issue? Or, I mean, not issue, just how it does its type checking as you mentioned. |
The warning is originating from |
Done. And I changed the But shouldn't post an issue at react-is instead? But seems it links to react repo. |
Thanks. Yea, |
It's been fixed in react-router 4.4 according to this issue: remix-run/react-router#6471. Will wait for the release, or I will try the beta tonight. |
Closing this since it isn't an issue of this package. |
Thanks for the quick work!
Super excited to try it out!
A quick issue, don't know if I miss something.
How to reproduce:
yarn start, rendering works fine!
check the console:
The text was updated successfully, but these errors were encountered: