Function: usePostOrPosts()
usePostOrPosts<
T,P>(params,options):usePostOrPostResponse<T>
Defined in: packages/next/src/data/hooks/usePostOrPosts.ts:18
The usePostOrPosts hook
Type Parameters
T
T extends PostEntity = PostEntity
P
P extends PostOrPostsParams = PostOrPostsParams
Parameters
params
Partial<P> = {}
The parameters accepted by the hook
options
FetchHookOptions<FetchResponse<PostOrPostsFetchStrategyResult<T>>> = {}
Options for the SWR configuration