File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ load the data will be the same, as will the code to render the UI.
7575
7676The data loading is a part of the route module in Remix. Each route module in
7777the ` app/routes ` directory can export an ` async ` function called a
78- [ ` loader ` ] ( https://remix.run/docs/en/1.14.3 /route/loader ) . This function is run
78+ [ ` loader ` ] ( https://remix.run/docs/en/main /route/loader ) . This function is run
7979only on the server and therefore has access to your database, APIs, private
8080environment variables, etc. It receives the ` Request ` object and ` params ` object
8181and should return a ` Response ` object. For example:
@@ -104,7 +104,7 @@ export async function loader({ request, params }: LoaderFunctionArgs) {
104104```
105105
106106Then the UI code can use the
107- [ ` useLoaderData ` ] ( https://remix.run/docs/en/1.14.3 /hooks/use-loader-data ) hook
107+ [ ` useLoaderData ` ] ( https://remix.run/docs/en/main /hooks/use-loader-data ) hook
108108from ` @remix-run/react ` which will return the data from the ` loader ` function.
109109
110110``` tsx
You can’t perform that action at this time.
0 commit comments