ProviderConfig
@dopt/react / Exports / ProviderConfig
Interface: ProviderConfig
Providing this configuration to the DoptProvider allows the the SDK to fetch relevant data from the Dopt blocks API.
Table of contents
Properties
Properties
userId
• userId: undefined
| string
The userId you're fetching block and flows for.
Defined in
packages/@dopt/react/src/types.ts:47
groupId
• Optional
groupId: string
An optional groupId for that userId.
Defined in
packages/@dopt/react/src/types.ts:51
apiKey
• apiKey: string
Your blocks API key.
Defined in
packages/@dopt/react/src/types.ts:55
logLevel
• Optional
logLevel: LogLevels
Defined in
packages/@dopt/react/src/types.ts:56
flowVersions
• flowVersions: Record
<string
, number
>
An object containing all flows and versions you'd like to fetch.
Defined in
packages/@dopt/react/src/types.ts:60
optimisticUpdates
• Optional
optimisticUpdates: boolean
A boolean which defines whether complete intents on step blocks should optimistically update the client before hearing back that the change has been committed.
Within DoptProvider, this defaults to true
.
Defined in
packages/@dopt/react/src/types.ts:68
children
• Optional
children: ReactNode
The children React elements of the DoptProvider.