Skip to main content

Function: useFetchAuthorArchive()

useFetchAuthorArchive<T, P>(params, options, path): usePostsResponse<T>

Defined in: packages/core/src/react/hooks/useFetchAuthorArchive.ts:22

The useFetchAuthorArchive hook

See useAuthorArchive

Type Parameters

T

T extends PostEntity = PostEntity

P

P extends PostsArchiveParams = PostsArchiveParams

Parameters

params

The list of params to pass to the fetch strategy. It overrides the ones in the URL.

{ } | PostEntity

options

FetchHookOptions<FetchResponse<T[]>> = {}

The options to pass to the swr hook.

path

string = ''

The path of the url to get url params from.

Returns

usePostsResponse<T>