pacificclimate/climate-explorer-frontend

View on GitHub
src/HOCs/withAsyncData.js

Summary

Maintainability
A
1 hr
Test Coverage

Function withAsyncData has 48 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export default function withAsyncData(
  loadAsyncData,  // Async data fetcher. Returns a promise.
  controlProp,    // Name of prop that controls data fetching
  dataProp        // Name of prop to pass data to base component through
) {
Severity: Minor
Found in src/HOCs/withAsyncData.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status