Build a ServerLoaderContext from primitives. Resolves the auth token from the
cookies (by name) or a bearer authorization header value.
Context primitives.
Optionalauthorization?: stringOptionalcookies?: Record<string, string>Optionalfetch?: {Optionalsignal?: AbortSignalOptionaltokenCookieName?: stringA ready-to-use loader context.
Server data-loading API for React pages, re-exported from
@stone-js/use-view.A page's
handle(event)is its loader. For fine control over the SSR ⇄ CSR boundary — e.g. fetching authenticated data from an API during SSR with the request token, and degrading gracefully when it fails — wrap the fetch in a server loader: