Skip to main content

Interface: useSearchNativeResponse<T>

@headstartwp/core.react.useSearchNativeResponse

Type parameters

NameType
Textends PostSearchEntity | TermSearchEntity = PostSearchEntity | TermSearchEntity

Hierarchy

Properties

data

Optional data: Object

Type declaration

NameType
pageInfoPageInfo
queriedObjectQueriedObject
searchResultsT[]

Overrides

HookResponse.data

Defined in

packages/core/src/react/hooks/useFetchSearchNative.ts:22


error

Optional error: string

Inherited from

HookResponse.error

Defined in

packages/core/src/react/hooks/types.ts:6


isMainQuery

isMainQuery: boolean

Inherited from

HookResponse.isMainQuery

Defined in

packages/core/src/react/hooks/types.ts:8


loading

loading: boolean

Inherited from

HookResponse.loading

Defined in

packages/core/src/react/hooks/types.ts:7


mutate

mutate: KeyedMutator<FetchResponse<T[]>>

Defined in

packages/core/src/react/hooks/useFetchSearchNative.ts:23