Callable from both server and client
- In SSR environments, the
loader
runs on the server during initial rendering to fetch data,
- In the browser, the same
loader
runs on the client during route transitions.
loader
runs on the server during initial rendering to fetch data,loader
runs on the client during route transitions.