mihaaai
Explore posts from serversHow to trigger server function for SSR when transitioning routes?
Thanks for the help, indeed using the slug as an argument to getInitialProps solved the problem, not everything works as expected!
I've been reading about not using the use* functions on the server but damn, the docs are so much empty...
Kudos! 🙏
7 replies
How to trigger server function for SSR when transitioning routes?
NavigatorItem.tsx
This is one of the navigation components that is mounted right inside the <Router>
but not inside the [slug].tsx
page
app.tsx
The Root:
The problem is that getInitialProps()
gets triggered only on full refresh or first load, if I click on <NavigatorItem />
the route changes but the content isn't fetched for the new slug7 replies
CDCloudflare Developers
•Created by ThisCatLikesCrypto on 7/5/2024 in #pages-help
Deployments just.. don't (GitHub Issue)
Same for me
EDIT:
Seems like a Pages Dash problem, refreshed the deployments view and previous deployments appeared as executed
11 replies