MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / onSuccess

Function onSuccess

apps/start/src/modals/edit-group.tsx:59–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57 const mutation = useMutation(
58 trpc.group.update.mutationOptions({
59 onSuccess() {
60 queryClient.invalidateQueries(trpc.group.list.pathFilter());
61 queryClient.invalidateQueries(trpc.group.byId.pathFilter());
62 queryClient.invalidateQueries(trpc.group.types.pathFilter());
63 toast('Success', { description: 'Group updated.' });
64 popModal();
65 },
66 onError: handleError,
67 })
68 );

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected