• Reports an error that occurred in a callback function, for example within an effect or a watch callback.

    Parameters

    • error: unknown

      The error that occurred.

    • Optionalmessage: string

      An optional message to include in the error.

    Returns void