fix(invalidate): keep invalidate default behaviour [BE-11064] (#12080)

pull/12145/head
Ali 3 months ago committed by GitHub
parent 59b3375b59
commit 10767a06df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -37,9 +37,7 @@ export function withInvalidate(
return {
onSuccess() {
const promise = Promise.all(
queryKeysToInvalidate.map((keys) =>
queryClient.invalidateQueries(keys, { refetchType: 'none' })
)
queryKeysToInvalidate.map((keys) => queryClient.invalidateQueries(keys))
);
return skipRefresh
? undefined // don't wait for queries to refresh before setting state to success

Loading…
Cancel
Save