pankod/refine

View on GitHub
packages/core/src/hooks/invalidate/index.tsx

Summary

Maintainability
A
2 hrs
Test Coverage

Function useInvalidate has 65 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const useInvalidate = (): ((
  props: UseInvalidateProp,
) => Promise<void>) => {
  const { resources } = useResource();
  const queryClient = useQueryClient();
Severity: Major
Found in packages/core/src/hooks/invalidate/index.tsx - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status