interface
AdminLoaderProps
Props supplied to a component paired with a Go admin loader.
Example
let { data, refresh, refreshing }: AdminLoaderProps<
AdminLoaderData['post-summary']
> = $props();Component props
| Property | Type | Description |
|---|---|---|
data | Data | Latest successful loader result. Read it directly from props; it updates when the URL changes or a refresh completes. |
refresh | () => Promise< | Run the same loader again for the current page URL. Change the URL to change filters; refresh takes no filter arguments. |
refreshing | boolean | True 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
interface AdminLoaderProps<Data> { ... }Methods
AdminLoaderProps.refresh()Public method AdminLoaderProps.refresh from @riducms/plugin.