interface

AdminLoaderProps

Props supplied to a component paired with a Go admin loader.

Example

ts
let { data, refresh, refreshing }: AdminLoaderProps<
  AdminLoaderData['post-summary']
> = $props();

Component props

PropertyTypeDescription
dataDataLatest successful loader result. Read it directly from props; it updates when the URL changes or a refresh completes.
refresh() => Promise<void>Run the same loader again for the current page URL. Change the URL to change filters; refresh takes no filter arguments.
refreshingbooleanTrue during an explicit refresh. Use it to disable the refresh button while keeping previous data visible.

How it works

Ridu supplies initial loading and retry states around the component. A failed refresh keeps the previous successful data.

Combine this type with AdminCoreViewProps when a replacement uses collection, global, documentID, or defaultView.

Full signature

Methods

Related guides