Declare a server-preferred data loader (imperative substrate; the declarative layer builds on it).
The loader function, called with a ServerLoaderContext.
Optionaloptions: ServerLoaderOptions<DataType, EventType>
Policy and fallback options.
A normalized ServerLoaderDescriptor.
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: