Skip to main content

Function: fetcher()

fetcher<T, P, R>(sourceUrl?, defaultParams?): PostOrPostsFetchStrategy<T, P, R>

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

Type Parameters​

T​

T extends PostEntity = PostEntity

P​

P extends PostOrPostsParams = PostOrPostsParams

R​

R extends PostOrPostsFetchStrategyResult<T> = PostOrPostsFetchStrategyResult<T>

Parameters​

sourceUrl?​

string

defaultParams?​

P

Returns​

PostOrPostsFetchStrategy<T, P, R>