Interface: useSearchResponse<T>
@headstartwp/core.react.useSearchResponse
Type parameters
Name | Type |
---|---|
T | extends PostEntity = PostEntity |
Hierarchy
↳
useSearchResponse
Properties
data
• data: Object
Type declaration
Name | Type |
---|---|
pageInfo | PageInfo |
posts | T [] |
queriedObject | QueriedObject |
Overrides
Defined in
packages/core/src/react/hooks/useFetchSearch.ts:19
error
• Optional
error: string
Inherited from
Defined in
packages/core/src/react/hooks/types.ts:6
isMainQuery
• isMainQuery: boolean
Inherited from
Defined in
packages/core/src/react/hooks/types.ts:8
loading
• loading: boolean
Inherited from
Defined in
packages/core/src/react/hooks/types.ts:7
mutate
• mutate: KeyedMutator
<FetchResponse
<T
[]>>