Interface InvalidateOptions

interface InvalidateOptions {
    cancelRefetch?: boolean;
    throwOnError?: boolean;
}

Hierarchy (view full)

Properties

cancelRefetch?: boolean

If set to true, a currently running request will be cancelled before a new request is made

If set to false, no refetch will be made if there is already a request running.

Defaults to true.

throwOnError?: boolean