The explicit | undefined on update is required under
exactOptionalPropertyTypes: true so callers can pass
update={maybeUndefined} without a TypeScript error.
Optional MVU runner. Note the explicit | undefined — required
with exactOptionalPropertyTypes: true to allow the prop to be
passed as update={maybeUndefined} cleanly.
Props for CauslProvider.
Remarks
The explicit
| undefinedonupdateis required underexactOptionalPropertyTypes: trueso callers can passupdate={maybeUndefined}without a TypeScript error.