OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.
fix: refetch issues
Carl-Gerhard Lindesvärd411021ee046f
diff --git a/apps/start/src/components/integrations/forms/webhook-integration.tsx b/apps/start/src/components/integrations/forms/webhook-integration.tsxindex 0d3053d10..69b60cc6c 100644--- a/apps/start/src/components/integrations/forms/webhook-integration.tsx+++ b/apps/start/src/components/integrations/forms/webhook-integration.tsx@@ -20,13 +20,12 @@ export function WebhookIntegrationForm({defaultValues?: RouterOutputs['integration']['get'];onSuccess: () => void;}) {- const { organizationId, projectId } = useAppParams();+ const { organizationId } = useAppParams();const form = useForm<IForm>({defaultValues: mergeDeepRight({id: defaultValues?.id,organizationId,- projectId,config: {type: 'webhook' as const,url: '',diff --git a/apps/start/src/components/notifications/rule-card.tsx b/apps/start/src/components/notifications/rule-card.tsxindex 82be1ef1c..9c3da3c51 100644--- a/apps/start/src/components/notifications/rule-card.tsx+++ b/apps/start/src/components/notifications/rule-card.tsx@@ -51,7 +51,11 @@ export function RuleCard({trpc.notification.deleteRule.mutationOptions({onSuccess() {toast.success('Rule deleted');- client.refetchQueries(trpc.notification.rules.pathFilter());+ client.refetchQueries(+ trpc.notification.rules.queryOptions({+ projectId: rule.projectId,+ }),+ );},}),);diff --git a/apps/start/src/integrations/tanstack-query/root-provider.tsx b/apps/start/src/integrations/tanstack-query/root-provider.tsxindex 556a140c1..50ee2ac85 100644--- a/apps/start/src/integrations/tanstack-query/root-provider.tsx+++ b/apps/start/src/integrations/tanstack-query/root-provider.tsx@@ -43,8 +43,6 @@ export function getContext(apiUrl: string) {queries: {staleTime: 1000 * 60 * 5,gcTime: 1000 * 60 * 10,- refetchOnWindowFocus: false,- refetchOnMount: false,refetchOnReconnect: false,},dehydrate: { serializeData: superjson.serialize },