-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
DOMException when navigating with react-router #297
Comments
Hi @yanni4night! Thanks for the detailed explanation of the issue. This crasher was introduced in In the meantime (hopefully not long), you might find that wrapping your |
I've got a fix! Just making sure it's a fix for the root cause and not just a patch :) |
Great, I've avoided that. Excellent library, more stability and compatibility expected! |
For me, put a "div" around Provider or/and Router doesn't work... |
I'll try to release the patch tonight. |
At the very least it prevents the exception, though it also appears to be a durable fix. |
Will be tomorrow morning, sorry. Gotta get some sleep. On the plus side, good perf improvements on the way. |
Fixed in 2743a80. |
Released in |
I don't know what's wrong with it, so the replication may be a little complicated, please be patient.
I am trying to use
redux
,react-redux
,react-router
,react-router-redux
as well aspreact
instead ofreact
to build an APP. As I read the doc,preact-compat
makes preact as same as react mostly.I found in some cases, dom-diff algorithm may crash. Please navigate to https://bitbucket.org/yanni4night/preact-issue-297 and follow README to replicate the issue. In brief, when I pressed the "go back" button of browser:
I guess the definition of routers may be the key:
If I move the last router, everything is OK:
So, how could I avoid this issue?
BTW, react works fine.
The text was updated successfully, but these errors were encountered: