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

Function onSuccess

apps/start/src/modals/add-reference.tsx:41–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39 const mutation = useMutation(
40 trpc.reference.create.mutationOptions({
41 onSuccess() {
42 queryClient.invalidateQueries(trpc.reference.pathFilter());
43 toast('Success', {
44 description: 'Reference created.',
45 });
46 popModal();
47 },
48 onError: handleError,
49 }),
50 );

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected