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:
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: