Skip to Content
You are viewing the v12 docs of React Flow. You can find the latest version here.

OnError

Source on GitHub 

The OnError type defines the callback function that is called when an error occurs. This callback receives an error id and the error message as its argument.

type OnError = (id: string, error: string) => void;
Parameters:
NameTypeDefault
idstring
messagestring
Returns:
void
Last updated on