-
Hi all, In development the data from my loaders is fetched via a route that returns JSON and not HTML. Remix seems to handle this automatically (i.e. something like Is there a way to enable the same JSON functionality inside of the production build? I'm not sure what feature this is inside of Remix so it's hard to search. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
The json data is inlined in the html during SSR for a document request which happens on the first page load. On any client side navigation Remix will fetch only the data on the URL you mentioned. This behavior remains the change in development and production. If you don’t see the fetching for data ensure your app has client side JS working on production. |
Beta Was this translation helpful? Give feedback.
The json data is inlined in the html during SSR for a document request which happens on the first page load.
On any client side navigation Remix will fetch only the data on the URL you mentioned.
This behavior remains the change in development and production. If you don’t see the fetching for data ensure your app has client side JS working on production.