Skip to content

throwOnError is still on MutationObserverOptions #8569

@AlexErrant

Description

@AlexErrant

throwOnError?: boolean | ((error: TError) => boolean)

I believe this should be removed since it doesn't do anything (I think) and is confusing to new users like me.

Then mutate would return nothing, mutateAsync would return a promise and throwOnError can be removed. Src.

Would you accept a PR removing it, or is there a reason it's still there?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions