-
Notifications
You must be signed in to change notification settings - Fork 27k
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
Next v6 page transition error #4232
Comments
I noticed the same issue, but it doesn't happen often for me. I saw this message in the console: |
could you provide a repository to reproduce, thanks 🙏 |
@timneutkens here you go: https://github.com/goldenshun/next-with-page-transition-issues Its strange, but in order to reproduce:
I'm not sure if the issue is with |
For whatever reason it's related to
|
@timneutkens changing the contents of |
So this fixes it for me:
where this breaks:
and this breaks:
I do not understand why these yield different behavior. |
Experiencing this issue as well, blocking our upgrade to 6.0 |
+1 for this issue. It is blocking me from upgrading our project to v6 |
@eli0shin Try adding |
@goldenshun
and then remove dir:
This code will work: const WithRoot = (props) => {
return <WrappedComponent {...props} />;
} This can be related with gaearon/react-hot-loader#873 |
@timneutkens The problem is real. This PR gaearon/react-hot-loader#977 is going to fix this issues. |
@Everettss we've been having so many issues with You'll obviously still be able to use it using a custom |
@timneutkens Unfortunately this problem is not going to be solved by gaearon/react-hot-loader#977. I was fooled by You can reproduce this by doing:
Now all navigation works but in console appears error:
|
I have found workaround that works with YARN, just overwrite dependency in package.json:
|
@ex3ndr Yes but you will be not able to use new 16.3 react lifecycles (unless you are ready to see an enormous amount of errors in console caused by RHL) |
FYI react-hot-loader has been removed in |
Also @goldenshun can you try |
@timneutkens I have tried canary, but does this mean that i will be unable to auto-refresh page? It is just not working at all at canary. |
Please provide a reproduction. |
@timneutkens |
FYI: Was still an issue for me in next v6.1.0 until I removed a bit of service worker logic I had in my config: https://github.com/ooade/NextSimpleStarter/blob/master/next.config.js#L13 |
Going to close this. Should be fixed on stable, but if it still happens try next@canary. |
After upgrading to next 6.0.0, when running Next in dev mode, page transitions sometimes get stuck rendering the current page rather than rendering the next page.
Expected Behavior
When clicking a
<Link />
in dev mode, after the page bundle builds, the client should navigate to the linked page.The behavior is inconsistent and I have not been able to reproduce this issue when the page is already built.
Current Behavior
After the next page bundle builds, the client re-renders the current page.
Steps to Reproduce (for bugs)
dev
command isnode server.js
<Link />
to second pageRefreshing the page renders the second page correctly.
Context
This is preventing us from upgrading to Next 6.0.0
Your Environment
The text was updated successfully, but these errors were encountered: