Skip to main content

Function: useFetchPostOrPosts()

useFetchPostOrPosts<T, P>(params, options, path): usePostOrPostResponse<T>

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

Type Parameters​

T​

T extends PostEntity = PostEntity

P​

P extends PostOrPostsParams = PostOrPostsParams

Parameters​

params​

Partial<P> = {}

options​

FetchHookOptions<FetchResponse<PostOrPostsFetchStrategyResult<T>>> = {}

path​

string = ''

Returns​

usePostOrPostResponse<T>