Submit input values and start a new stream run.
Delegates to submitDirect. Override or wrap this method in framework adapters to add queuing or other middleware.
submit(
values: GetUpdateType<Bag, StateType> | null | undefined,
submitOptions: CustomSubmitOptions<StateType, GetConfigurableType<Bag>>
): Promise<void>| Name | Type | Description |
|---|---|---|
values* | GetUpdateType<Bag, StateType> | null | undefined | The input values to send, or |
submitOptions | CustomSubmitOptions<StateType, GetConfigurableType<Bag>> | Optional per-call overrides. |