UNPKG

react-redux-fetch

Version:

A declarative and customizable way to fetch data for React components and manage that data in the Redux state

10 lines (8 loc) 258 B
const fetchIsFulfilled = (prevProps, nextProps, resource) => prevProps[`${resource}Fetch`] && nextProps[`${resource}Fetch`] && prevProps[`${resource}Fetch`].pending && nextProps[`${resource}Fetch`].fulfilled; export default { fetchIsFulfilled, };