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