Flag to disable exposed, auto-generated server loader endpoint #13644
WoodyWoodsta
started this conversation in
Proposals
Replies: 1 comment
-
Nextjs bundles the initial data in a script together with the HTML, while that doesn't prevent scrapping, it makes it a little more difficult. That would also reduce unnecessary HTTP requests. React Router should call .data only if it needs revalidation. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
There are scenarios where we would like to have a page be pure SSR. The requirement comes from presenting information which does not need to be revalidated, and is somewhat valuable. In this scenario, anyone who knows that the page is built using React Router will know that the data for the page is loaded via
/path/to/page.data
, and are able then to use the endpoint to more easily scrape information.The proposal is to expose a flag either on the
loader
function (in the same manner ashydrate
onclientLoader
) or on the route definition, which will:clientLoader
If not for the flag, or new feature, is there another way this is currently possible to achieve?
Beta Was this translation helpful? Give feedback.
All reactions