Skip to main content

Interface: usePostOrPostResponse<T>

@headstartwp/core.react.usePostOrPostResponse

Type parameters

NameType
Textends PostEntity = PostEntity

Hierarchy

Properties

data

Optional data: Object

Type declaration

NameType
post?T
posts?T[]

Overrides

HookResponse.data

Defined in

packages/core/src/react/hooks/useFetchPostOrPosts.ts:15


error

Optional error: string

Inherited from

HookResponse.error

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

HookResponse.isMainQuery

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

Inherited from

HookResponse.loading

Defined in

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