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

stacklok / codegate-ui / 13328630689

14 Feb 2025 11:52AM UTC coverage: 68.087% (+0.1%) from 67.986%
13328630689

Pull #311

github

web-flow
Merge 7b0e5f61f into 35ba1a43d
Pull Request #311: feat: add support muxing rules

391 of 646 branches covered (60.53%)

Branch coverage included in aggregate %.

102 of 121 new or added lines in 14 files covered. (84.3%)

823 of 1137 relevant lines covered (72.38%)

67.18 hits per line

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

0.0
/src/features/providers/hooks/use-invalidate-providers-queries.ts
1
import {
2
  v1ListAllModelsForAllProvidersQueryKey,
3
  v1ListProviderEndpointsQueryKey,
4
} from '@/api/generated/@tanstack/react-query.gen'
5
import { useQueryClient } from '@tanstack/react-query'
6
import { useCallback } from 'react'
7
import { invalidateQueries } from '../../../lib/react-query-utils'
8

9
export function useInvalidateProvidersQueries() {
10
  const queryClient = useQueryClient()
×
11

12
  const invalidate = useCallback(async () => {
×
NEW
13
    invalidateQueries(queryClient, [
×
14
      v1ListProviderEndpointsQueryKey,
15
      v1ListAllModelsForAllProvidersQueryKey,
16
    ])
17
  }, [queryClient])
18

19
  return invalidate
×
20
}
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