Interface: usePostOrPostResponse<T>
@headstartwp/core.react.usePostOrPostResponse
Type parameters
Name | Type |
---|---|
T | extends PostEntity = PostEntity |
Hierarchy
↳
usePostOrPostResponse
Properties
data
• data: Object
Type declaration
Name | Type |
---|---|
post? | T |
posts? | T [] |
Overrides
Defined in
packages/core/src/react/hooks/useFetchPostOrPosts.ts:15
error
• Optional
error: string
Inherited from
Defined in
packages/core/src/react/hooks/types.ts:6
isArchive
• isArchive: boolean
Defined in
packages/core/src/react/hooks/useFetchPostOrPosts.ts:17
isMainQuery
• isMainQuery: boolean
Inherited from
Defined in
packages/core/src/react/hooks/types.ts:8
isSingle
• isSingle: boolean
Defined in
packages/core/src/react/hooks/useFetchPostOrPosts.ts:16
loading
• loading: boolean