O3 Framework / UseServerFetchAllOptions
Defined in: packages/framework/esm-react-utils/src/useOpenmrsFetchAll.ts:14
R
optionalfetcher: (key) =>Promise<FetchResponse<R>>
Defined in: packages/framework/esm-react-utils/src/useOpenmrsInfinite.ts:18
The fetcher to use. Defaults to openmrsFetch
string
Promise<FetchResponse<R>>
UseServerInfiniteOptions.fetcher
optionalimmutable:boolean
Defined in: packages/framework/esm-react-utils/src/useOpenmrsInfinite.ts:25
If true, sets these options in swrInfintieConfig to false:
revalidateIfStale, revalidateOnFocus, revalidateOnReconnect
This should be the counterpart of using useSWRImmutable for useSWRInfinite`
UseServerInfiniteOptions.immutable
optionalpartialData:boolean
Defined in: packages/framework/esm-react-utils/src/useOpenmrsFetchAll.ts:21
If true, the data of any page is returned as soon as they are fetched. This is useful when you want to display data as soon as possible, even if not all pages are fetched. If false, the returned data will be undefined until all pages are fetched. This is useful when you want to display all data at once or reduce the number of re-renders (to avoid confusing users).
optionalswrInfiniteConfig:SWRInfiniteConfiguration<any,any,BareFetcher<any>>
Defined in: packages/framework/esm-react-utils/src/useOpenmrsInfinite.ts:27