Skip to main content

Function: fetchPost()

fetchPost<T, P>(query, _config, fetcher): Promise<{ data: { post: T & object; }; isMainQuery: boolean; }>

Defined in: packages/core/src/data/fetchFn/fetchPost.ts:8

Type Parameters

T

T extends PostEntity = PostEntity

P

P extends PostParams = PostParams

Parameters

query

QueryProps<P> = {}

_config

undefined | HeadlessConfig

fetcher

undefined | SinglePostFetchStrategy<T, P>

Returns

Promise<{ data: { post: T & object; }; isMainQuery: boolean; }>