Mention that the navigate helper is not available during SSR
See original GitHub issueMotivation
When using the navigate
helper, it was easy to forget/not realize that it’s not available during SSR. The documentation page should mention how to handle that.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Gatsby window not available during server side rendering ...
navigate only works for internal routing. As has been said, the redirection is external therefore must be treated using window . – Ferran...
Read more >Adding Navigation In React SSR - Anil Verma - Medium
So We have StaticRouter on Server side and BrowserRouter for Client side. Go to index file and make following change. Express as server...
Read more >Gatsby Link API
How to use the navigate helper function. Sometimes you need to navigate to pages programmatically, such as during form submissions. In these cases,...
Read more >Creating Server-side Rendered Vue.js Apps Using Nuxt.js
Open your browser to localhost:3000 and your project should be running. Not much different from creating a Vue Webpack project. However, when we...
Read more >Implementing SSR in Next.js: Dynamic routing and prefetching
And while static site generation (SSG) is considered simpler and faster, there are cases where server-side rendering is your only option.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@dandv if you want to submit a PR feel free. However I personally feel like it’s not that beneficial to document for a few reasons.
I’m going to close the issue, but i’ll cc @AishaBlake who leads our documentation to weigh in if she feels differently. Thanks for raising concern though!
The version is now Gatsby 5 and
navigate
is still alive and well!