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

Function onSuccess

apps/start/src/components/report/ReportSaveButton.tsx:32–43  ·  view source on GitHub ↗
(res)

Source from the content-addressed store, hash-verified

30 const update = useMutation(
31 trpc.report.update.mutationOptions({
32 onSuccess(res) {
33 dispatch(resetDirty());
34 toast('Success', {
35 description: 'Report updated.',
36 });
37 queryClient.invalidateQueries(
38 trpc.report.list.queryFilter({
39 dashboardId: res.dashboardId,
40 projectId: res.projectId,
41 }),
42 );
43 },
44 onError: handleError,
45 }),
46 );

Callers

nothing calls this directly

Calls 1

resetDirtyFunction · 0.90

Tested by

no test coverage detected