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

Function handleSuccess

apps/start/src/modals/add-integration.tsx:51–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49 const navigate = useNavigate();
50 const client = useQueryClient();
51 const handleSuccess = () => {
52 toast.success('Integration created');
53 popModal();
54 client.invalidateQueries(trpc.integration.list.pathFilter());
55 client.invalidateQueries(
56 trpc.integration.get.queryFilter({ id: props.id }),
57 );
58 navigate({
59 to: '/$organizationId/integrations/installed',
60 params: {
61 organizationId,
62 },
63 });
64 };
65
66 const renderForm = () => {
67 if (props.id && query.isLoading) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected