-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
navigate() function load the url but the page is not refreshed on mobile #27020
Comments
@developer0116 This doesn't sound Gatsby specific. Could you provide more details or possibly a minimal reproduction? |
This appears to be a regression somewhere between gatsby 2.24.63 and 2.24.73 dealing with navigation changing only the search parameter. This applies to all browsers as far as I've seen and is not mobile specific. On version 63, calling After updating to version 73, making that exact same call in the exact same way (no code changes at all), the page re-renders, but accessing location.search (via either method) returns the previous URL search value, not the newly updated one. Further calls to navigate continue to update the URL in the browser, but no further component re-renders are invoked. I'll try to put together a minimal reproduction for this. |
Minimal reproduction repo: Steps to reproduce:
See it work in an older version of gatsby:
|
I have the same issue when i recall the same page with a different state: The problem appear after upgrading |
Sorry to hear you're running into an issue. To help us best begin debugging the underlying cause, it is incredibly helpful if you're able to create a minimal reproduction. This is a simplified example of the issue that makes it clear and obvious what the issue is and how we can begin to debug it. If you're up for it, we'd very much appreciate if you could provide a minimal reproduction and we'll be able to take another look. Thanks for using Gatsby! 💜 |
Hi @wardpeet, i've created a minimal reproduction that show the problem. https://github.com/doscio/gatsby-navigate-issue The index page has a button that navigate to Versions prior to
Everytime I click |
@doscio @wardpeet I've already created a minimal reproduction and posted it in the comments above: #27020 (comment) You can very easily modify this same reproduction to reproduce the same issue with state not updating. Basically, no |
Fixed by #27594 Please install |
This issue is still not fixed, in my app when I programmatically call navigate() from my global store, it updates the URL but does nothing to update the page, it only updates the page when I manually refresh it. Heres my gatsby info System:
^1.3.0 => 1.3.0 gatsby-plugin-google-analytics: gatsby-plugin-scss-typescript: gatsby-remark-copy-linked-files: gatsby-remark-responsive-iframe: |
the current url is "/abc/?tag=a" and I navigated it to "abc/?tag=b".
But the url on the browser is changed, but the page is not refreshed on mobile.
Look forward to your support.
Best
The text was updated successfully, but these errors were encountered: