-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warning when used with react-router-dom #172
Comments
Hi @heraldb Thanks for taking the time to report this! It seems like It seems like the workaround until they fix the bug is to do this:
You can follow the issue there: remix-run/react-router#6056 |
Thanks for your quick response!
For now I switched to react-cookies (with the "s") which works fine. So, no pressure. |
You might be missing a prop that Otherwise you can just ignore the warning and keep using the component prop. |
@heraldb The warning should be fixed as soon as this PR is merged: remix-run/react-router#6327 |
Thanks for the quick fix! |
Just FYI: this was fixed in remix-run/react-router#6417 and is now available in the React Router 4.4 beta. |
I had the exact problem and message described in the opening comment on this issue, and upgrading to React Router 4.4. beta 6 has corrected it. Thank you! |
Hi!
Thanks for this module! Maybe you can comment on this:
The warning I see is:
relevant source code
Reason is that "
App
" is of type function, while "withCookies(App)
" is of type Object. And as suggested in the example code, I exported the App usingwithCookies
, so indeed an Object is exported instead of a function.I seems to work however, but it feels not OK. What would you recommend?
The text was updated successfully, but these errors were encountered: