ajeetchaulagain/react-clean-code-pattern

View on GitHub
src/hooks/useRequest.js

Summary

Maintainability
A
1 hr
Test Coverage

Function useRequestSimple has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const useRequestSimple = (baseUrl, routeName) => {
  const [{ records, status, error }, dispatch] = useReducer(requestReducer, {
    status: REQUEST_STATUS.LOADING,
    records: [],
    error: null,
Severity: Minor
Found in src/hooks/useRequest.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status