Providing this configuration to the DoptProvider allows the the SDK to fetch relevant data from the Dopt blocks API.
Table of contents
The userId you're fetching block and flows for.
An optional groupId for that userId.
Your blocks API key.
An object containing all flows and versions you'd like to fetch.
The versions can be a number (a fixed version), "uncommitted" which references the uncommitted version in Dopt, or "latest" which references the most recently created version in Dopt.
⚠️ Warning ⚠️: Using either "uncommitted" or "latest" will cause updates made in Dopt to be reflected in the provider upon window reload without needing to update or deploy code.
A boolean which defines whether transitions on step blocks should optimistically update the client before hearing back that the change has been committed.
Within DoptProvider, this defaults to
The children React elements of the DoptProvider.