Function: useFetchTerms()
useFetchTerms<
T,P>(params,options,path):useTermsResponse<T>
Defined in: packages/core/src/react/hooks/useFetchTerms.ts:31
The useFetchTerms hook. Returns a collection of term entities
See useTerms for usage instructions.
Type Parameters
T
T extends TermEntity = TermEntity
P
P extends TaxonomyArchiveParams = TaxonomyArchiveParams
Parameters
params
The list of params to pass to the fetch strategy. It overrides the ones in the URL.
{ } | P
options
FetchHookOptions<FetchResponse<T[]>> = {}
The options to pass to the swr hook.
path
string = ''
The path of the url to get url params from.