openmrs-esm-core

O3 Framework / UseServerPaginationOptions

Interface: UseServerPaginationOptions<R>

Defined in: packages/framework/esm-react-utils/src/useOpenmrsPagination.ts:13

Type Parameters

R

R

Properties

fetcher()?

optional fetcher: (key) => Promise<FetchResponse<R>>

Defined in: packages/framework/esm-react-utils/src/useOpenmrsPagination.ts:22

The fetcher to use. Defaults to openmrsFetch

Parameters

key

string

Returns

Promise<FetchResponse<R>>


immutable?

optional immutable: boolean

Defined in: packages/framework/esm-react-utils/src/useOpenmrsPagination.ts:17

Whether to use useSWR or useSWRInfinite to fetch data


swrConfig?

optional swrConfig: SWRConfiguration

Defined in: packages/framework/esm-react-utils/src/useOpenmrsPagination.ts:27

The configuration object for useSWR or useSWRInfinite