@wocart/theme / index / LoadFn
Type Alias: LoadFn<P>
LoadFn<
P> = (context) =>Promise<Record<string,unknown>>
Server-side data fetch for one component definition. Through
defineComponent, props is typed from the definition's own fields
(FieldValues): a field with a default is always there, any other may be
absent.
Type Parameters
P
P = Record<string, unknown>
Parameters
context
LoadContext<P>
Returns
Promise<Record<string, unknown>>