• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stacklok / codegate-ui / 13700722011

06 Mar 2025 02:16PM UTC coverage: 69.903%. Remained the same
13700722011

Pull #373

github

web-flow
Merge 06515ee0f into db80e1ec2
Pull Request #373: chore(deps-dev): bump @hey-api/openapi-ts from 0.61.3 to 0.64.10

422 of 669 branches covered (63.08%)

Branch coverage included in aggregate %.

881 of 1195 relevant lines covered (73.72%)

72.11 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/features/providers/hooks/use-mutation-create-provider.ts
1
import { v1AddProviderEndpointMutation } from '@/api/generated/@tanstack/react-query.gen'
2
import { useToastMutation } from '@/hooks/use-toast-mutation'
3
import { useInvalidateProvidersQueries } from './use-invalidate-providers-queries'
4
import { useNavigate } from 'react-router-dom'
5

6
export function useMutationCreateProvider() {
7
  const navigate = useNavigate()
×
8
  const invalidate = useInvalidateProvidersQueries()
×
9
  return useToastMutation({
×
10
    ...v1AddProviderEndpointMutation(),
11
    successMsg: 'Successfully added provider',
12
    onSuccess: async () => {
13
      await invalidate()
×
14
      navigate('/providers')
×
15
    },
16
  })
17
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc