xylabs/sdk-react

View on GitHub
packages/render-spin-check/src/hooks/useRenderSpinCheck.tsx

Summary

Maintainability
A
1 hr
Test Coverage

Function useRenderSpinCheck has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const useRenderSpinCheck = (bounce: RenderSpinCheckBounce, config?: RenderSpinCheckConfig) => {
  const startTime = useMemo(() => Date.now(), [])
  const [error, setError] = useState<Error>()

  useEffect(() => {
Severity: Minor
Found in packages/render-spin-check/src/hooks/useRenderSpinCheck.tsx - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status