Without this we'll return the previous value of the monitor form without the alert rule, so we need to invalidate the cache
@@ -40,6 +40,7 @@ export default function EditMonitor() {
data: monitor,
refetch,
} = useApiQuery<Monitor>(queryKey, {
+ cacheTime: 0,
staleTime: 0,
});