useExecuteRequestCallback

Lightweight callback wrapper around useExecuteRequest.

Returns a stable async function that executes the provided config without triggering loading/data/error state updates.

Useful for:

  • Passing execution callbacks to components (e.g. search, autocomplete, tables)

  • Dynamic parameter execution

  • One-off requests where local state management is not needed

Internally:

  • Forces autoExecute = false

  • Disables debounce and polling

  • Delegates execution to useExecuteRequest

Installation

import { useExecuteRequestCallback } from 'uxp/components';

Signature

function useExecuteRequestCallback(config: ExecuteConfig, options?: Omit<UseExecuteOptions<T>, 'debounbce' | 'autoExecute' | 'polling'>): (param?: any) => Promise<ExecutionResult<T>>

Examples

Last updated