Closed
Description
Description
The useAssistant
hook exposes error
state and an onError
hook that is called whenever an error happens.
However, when an error happens during streaming, only error
gets set; onError
is not called.
We are using onError
hook to set custom error state, which is cleared on reload. Thus, it would be good to have:
onError
being called on stream errorsclearError
returned as a hook value that makes the reload process easier.
Code example
No response
Additional context
No response