src/HOCs/withAsyncData.js
Function withAsyncData
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
) {