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

Function onSuccess

apps/start/src/modals/edit-event.tsx:57–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55 const mutation = useMutation(
56 trpc.event.updateEventMeta.mutationOptions({
57 onSuccess() {
58 toast('Event updated');
59 client.invalidateQueries(trpc.event.pathFilter());
60 popModal();
61 },
62 }),
63 );
64 const getBg = (color: string) => `bg-${color}-200`;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected