-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[V2] Using anchor with react-router break styled <ThemeProvider /> #549
Comments
This bug is a bit more critical than I though. I also encounter the same issue using react-redux. In my The My Almost all our apps use styled-components v2 and are impacted by this bug. edit This is odd, I wanted to create a webpackbin to demonstrate the Provider issue I have on my application. I did https://www.webpackbin.com/bins/-Kes0_aG4mPlMjsm98Hy The thing is I can't reproduce the bug there. Indead, it might be the wrong reason but there is definitively something wrong with ThemeProvider. Here is the most strange fact about this bug :
|
Seems to be the same issue : #574 |
Corrected and released in |
I have found a bug in
v2.0.0-5
When clicking on url that use an anchor, the
<ThemeProvider />
has no more effect.Reverting to
v1.4.3
solve the issue.Version
2.0.0-5
Reproduction
http://www.webpackbin.com/NJGs7ebqG
https://webpackbin.herokuapp.com/NJGs7ebqG
Steps to reproduce
Use the anchroScroll method from here in your
react-router
: remix-run/react-router#394 (comment)Expected Behavior
To scroll to the anchor in question
Actual Behavior
It scroll but It also break the
<ThemeProvider />
and use the theme fromdefaultProps
instead.The text was updated successfully, but these errors were encountered: