Download react-query/packages/vue-query/src/mutationCache.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 674 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-query/packages/vue-query/src/mutationCache.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-query/packages/vue-query/src/mutationCache.ts
-
curl -L -o mutationCache.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-query/packages/vue-query/src/mutationCache.ts
674 Bytes
| import { MutationCache as MC } from '@tanstack/query-core' | |
| import { cloneDeepUnref } from './utils' | |
| import type { | |
| DefaultError, | |
| Mutation, | |
| MutationFilters, | |
| } from '@tanstack/query-core' | |
| import type { MaybeRefDeep } from './types' | |
| export class MutationCache extends MC { | |
| find< | |
| TData = unknown, | |
| TError = DefaultError, | |
| TVariables = any, | |
| TContext = unknown, | |
| >( | |
| filters: MaybeRefDeep<MutationFilters>, | |
| ): Mutation<TData, TError, TVariables, TContext> | undefined { | |
| return super.find(cloneDeepUnref(filters)) | |
| } | |
| findAll(filters: MaybeRefDeep<MutationFilters> = {}): Array<Mutation> { | |
| return super.findAll(cloneDeepUnref(filters)) | |
| } | |
| } | |