suspense-service

suspense-service / Exports / ServiceProviderProps

Interface: ServiceProviderProps<TRequest>

Type parameters

Name
TRequest

Table of contents

Properties

Properties

children

Optional children: ReactNode

default null

Defined in: Service/Provider/Props.ts:18


fallback

Optional fallback: null | boolean | ReactChild | ReactFragment | ReactPortal

The fallback to render if any children are suspended. If the fallback is null, undefined, or omitted, then a Suspense component must be inserted elsewhere between the Provider and Consumer.

default null

Defined in: Service/Provider/Props.ts:26


id

Optional id: Id

The key that identifies the ServiceProvider to be consumed

default null

Defined in: Service/Provider/Props.ts:14


request

request: TRequest

The request passed to handler for fetching an asynchronous resource.

Defined in: Service/Provider/Props.ts:9


reset

Optional reset: Reset<TRequest>

The reset function when request updates

Defined in: Service/Provider/Props.ts:30