()
| 57 | const mutation = useMutation( |
| 58 | trpc.group.update.mutationOptions({ |
| 59 | onSuccess() { |
| 60 | queryClient.invalidateQueries(trpc.group.list.pathFilter()); |
| 61 | queryClient.invalidateQueries(trpc.group.byId.pathFilter()); |
| 62 | queryClient.invalidateQueries(trpc.group.types.pathFilter()); |
| 63 | toast('Success', { description: 'Group updated.' }); |
| 64 | popModal(); |
| 65 | }, |
| 66 | onError: handleError, |
| 67 | }) |
| 68 | ); |
nothing calls this directly
no outgoing calls
no test coverage detected