Skip to main content

Interface: usePostOrPostResponse<T>

Defined in: packages/core/src/react/hooks/useFetchPostOrPosts.ts:14

Extends

Type Parameters

T

T extends PostEntity = PostEntity

Properties

data

data: object

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

post?

optional post: T

posts?

optional posts: T[]

Overrides

HookResponse.data


error?

optional error: string

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

Inherited from

HookResponse.error


isArchive

isArchive: boolean

Defined in: packages/core/src/react/hooks/useFetchPostOrPosts.ts:17


isMainQuery

isMainQuery: boolean

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

Inherited from

HookResponse.isMainQuery


isSingle

isSingle: boolean

Defined in: packages/core/src/react/hooks/useFetchPostOrPosts.ts:16


loading

loading: boolean

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

Inherited from

HookResponse.loading