Scheduling infrastructure for absolutely everyone.
Invalidate the form query on toggle to update toggle state in UI (#8325)
Hariom Balharab6e1989f17b0
diff --git a/packages/app-store/routing-forms/components/FormActions.tsx b/packages/app-store/routing-forms/components/FormActions.tsxindex e733ac620fb..7d84059335f 100644--- a/packages/app-store/routing-forms/components/FormActions.tsx+++ b/packages/app-store/routing-forms/components/FormActions.tsx@@ -276,8 +276,13 @@ export function FormActionsProvider({ appUrl, children }: { appUrl: string; chil}return { previousValue };},- onSettled: () => {+ onSettled: (routingForm) => {utils.viewer.appRoutingForms.forms.invalidate();+ if (routingForm) {+ utils.viewer.appRoutingForms.formQuery.invalidate({+ id: routingForm.id,+ });+ }},onError: (err, value, context) => {if (context?.previousValue) {