UNPKG

@wordpress/widget-dashboard

Version:

Stateless rendering engine for widget dashboards: the WidgetDashboard compound component and its grid-settings kit.

13 lines • 521 B
import type { WidgetCallbackAction } from '@wordpress/widget-primitives'; /** * Runs an instance's callback actions and tracks, by `id`, the ones whose * promise has not settled. The state lives with the instance, so it * survives the surface that ran the action unmounting. * * @param {string} uuid The instance. */ export declare function useRunActions(uuid: string): { run: (action: WidgetCallbackAction) => Promise<void>; pendingIds: ReadonlySet<string>; }; //# sourceMappingURL=use-run-actions.d.ts.map