* Replaces the mutation's options and applies their `gcTime`. * @internal * @param options - The new mutation options.
(
options: MutationOptions<TData, TError, TVariables, TOnMutateResult>,
)
| 173 | * @param options - The new mutation options. |
| 174 | */ |
| 175 | setOptions( |
| 176 | options: MutationOptions<TData, TError, TVariables, TOnMutateResult>, |
| 177 | ): void { |
| 178 | this.options = options |
| 179 | |
| 180 | this.updateGcTime(this.options.gcTime) |
| 181 | } |
| 182 | |
| 183 | /** |
| 184 | * The `meta` object passed in the mutation's options, if any. |