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

Function onSuccess

apps/start/src/modals/edit-reference.tsx:52–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50 const mutation = useMutation(
51 trpc.reference.update.mutationOptions({
52 onSuccess() {
53 toast('Success', { description: 'Reference updated.' });
54 reset();
55 queryClient.invalidateQueries(
56 trpc.reference.getReferences.pathFilter(),
57 );
58 queryClient.invalidateQueries(
59 trpc.reference.getChartReferences.pathFilter(),
60 );
61 popModal();
62 },
63 onError: handleError,
64 }),
65 );

Callers

nothing calls this directly

Calls 1

resetFunction · 0.50

Tested by

no test coverage detected