winston0410/react-slow-network-component

View on GitHub

Showing 1 of 1 total issue

Function useSlowNetwork has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function useSlowNetwork (def) {
  const networkStatus = useNetwork()
  const [isSlowNetwork, setIsSlowNetwork] = useState(false)
  const [isOffline, setIsOffline] = useState(false)

Severity: Minor
Found in src/lib/useSlowNetwork.js - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language