Skip to main content

Interface: FetchHookDataOptions<P, T>

@headstartwp/next.FetchHookDataOptions

The supported options for fetchHookData

Type parameters

NameType
Punknown
Tunknown

Properties

cache

Optional cache: FetchStrategyCacheConfig

Controls server-side caching

Defined in

packages/next/src/data/server/fetchHookData.ts:44


fetchStrategyOptions

Optional fetchStrategyOptions: Partial<FetchOptions>

Optional. If set, will forward fetch options to the fetch strategy

Defined in

packages/next/src/data/server/fetchHookData.ts:39


filterData

Optional filterData: FilterDataOptions<T>

Optional. If set, the data will be filtered given FilterDataOptions

Defined in

packages/next/src/data/server/fetchHookData.ts:34


params

Optional params: P

This should match params passed to the hook on the client side.

Defined in

packages/next/src/data/server/fetchHookData.ts:29