@decathlon/moon
Advanced tools
Comparing version 4.3.0 to 4.4.0
@@ -567,3 +567,3 @@ import { QueryCache, MutationCache, QueryClient, QueryClientProvider, hashQueryKey, InfiniteQueryObserver, QueryObserver, notifyManager, QueriesObserver, useQuery as useQuery$1, useMutation as useMutation$1, useInfiniteQuery as useInfiniteQuery$1 } from 'react-query'; | ||
}, [variables]); | ||
return [others, { mutate: mutate, mutateAsync: mutateAsync, reset: reset }]; | ||
return [others, { mutate: mutate, mutateAsync: mutateAsync, reset: reset, dynamicMutate: reactQueryMutate, dynamicMutateAsync: reactQueryMutateAsync }]; | ||
} | ||
@@ -570,0 +570,0 @@ |
@@ -566,3 +566,3 @@ (function (global, factory) { | ||
}, [variables]); | ||
return [others, { mutate: mutate, mutateAsync: mutateAsync, reset: reset }]; | ||
return [others, { mutate: mutate, mutateAsync: mutateAsync, reset: reset, dynamicMutate: reactQueryMutate, dynamicMutateAsync: reactQueryMutateAsync }]; | ||
} | ||
@@ -569,0 +569,0 @@ |
@@ -8,2 +8,4 @@ import { UseMutationResult, MutationOptions } from "react-query"; | ||
mutateAsync: () => Promise<MutationResponse>; | ||
dynamicMutate: (variables: MutationVariables) => void; | ||
dynamicMutateAsync: (variables: MutationVariables) => Promise<MutationResponse>; | ||
} | ||
@@ -10,0 +12,0 @@ ]; |
@@ -49,5 +49,5 @@ "use strict"; | ||
}, [variables]); | ||
return [others, { mutate: mutate, mutateAsync: mutateAsync, reset: reset }]; | ||
return [others, { mutate: mutate, mutateAsync: mutateAsync, reset: reset, dynamicMutate: reactQueryMutate, dynamicMutateAsync: reactQueryMutateAsync }]; | ||
} | ||
exports.default = useMutation; | ||
//# sourceMappingURL=useMutation.js.map |
{ | ||
"name": "@decathlon/moon", | ||
"version": "4.3.0", | ||
"version": "4.4.0", | ||
"description": "A featured, production ready caching REST client for every React UI", | ||
@@ -58,3 +58,3 @@ "author": "Decathlon", | ||
}, | ||
"gitHead": "2caca613f6005e88758ec03e1d73f7de71577f08" | ||
"gitHead": "f51c1657b4474afebf7e587ee65ee13d005bdbfb" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
258825
2548