make checkout version and revert version fit pattern (#118)
This commit is contained in:
@@ -9,6 +9,7 @@ import {
|
||||
QueryCache,
|
||||
QueryClient,
|
||||
QueryClientProvider,
|
||||
MutationCache,
|
||||
} from "@tanstack/react-query";
|
||||
import { showError } from "./lib/toast";
|
||||
|
||||
@@ -39,6 +40,13 @@ const queryClient = new QueryClient({
|
||||
}
|
||||
},
|
||||
}),
|
||||
mutationCache: new MutationCache({
|
||||
onError: (error, _variables, _context, mutation) => {
|
||||
if (mutation.meta?.showErrorToast) {
|
||||
showError(error);
|
||||
}
|
||||
},
|
||||
}),
|
||||
});
|
||||
|
||||
const posthogClient = posthog.init(
|
||||
|
||||
Reference in New Issue
Block a user