Skip to content

Commit

Permalink
export -> method
Browse files Browse the repository at this point in the history
  • Loading branch information
brookslybrand committed May 24, 2024
1 parent f0881d2 commit aed4ad0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/start/data-loading.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default defineRoute$({

## Server Data Loading

When server rendering, the `loader` export is used to fetch data on the server for both initial page loads and client navigations through an automatic `fetch` by React Router in the browser.
When server rendering, the `loader` method is used to fetch data on the server for both initial page loads and client navigations through an automatic `fetch` by React Router in the browser.

```tsx filename=app/product.tsx
// route("products/:pid", "./product.tsx");
Expand Down

0 comments on commit aed4ad0

Please sign in to comment.