Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface UseSimpleQueryProps<TQueryParams, TResult>

Type parameters

  • TQueryParams

  • TResult

Hierarchy

  • UseSimpleQueryProps

Index

Properties

Optional debounceDelay

debounceDelay?: number

queryParams

queryParams: TQueryParams

Methods

Optional onError

  • onError(e: unknown): void

Optional onLoadingChange

  • onLoadingChange(loading: boolean): void

Optional onQueryStarted

  • onQueryStarted(): void

onResultReceived

  • onResultReceived(result: TResult): void

query

  • query(queryParams: TQueryParams): CancellablePromise<TResult>

shouldQueryImmediately

  • shouldQueryImmediately(prevQueryParams: TQueryParams, queryParams: TQueryParams): boolean

Optional shouldSkipQuery

  • shouldSkipQuery(queryParams: TQueryParams): boolean

Generated using TypeDoc