Skip to content

Server side rendering only on first request #12194

Answered by gustavopch
ziimakc asked this question in Q&A
Discussion options

You must be logged in to vote

In Remix v2, by adding a client loader to a route (https://remix.run/docs/en/main/route/client-loader), the server loader is only called if you explicitly call it, so you can simply not call the server if you prefer. That's how it will work in React Router v7 too. Not sure how it currently works in React Router v6 though.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ziimakc
Comment options

Answer selected by ziimakc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants