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

Function onSuccess

apps/start/src/modals/create-invite.tsx:51–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49 const mutation = useMutation(
50 trpc.organization.inviteUser.mutationOptions({
51 onSuccess() {
52 toast.success('User has been invited');
53 reset();
54 queryClient.invalidateQueries(
55 trpc.organization.invitations.queryFilter({ organizationId }),
56 );
57 },
58 onError(error) {
59 toast.error('Failed to invite user', {
60 description: error.message,

Callers

nothing calls this directly

Calls 1

resetFunction · 0.50

Tested by

no test coverage detected