import { Reducer } from 'redux' ; import { CRUD_GET_LIST_SUCCESS } from '../../../../actions/dataActions' ; type State = boolean ; /**
 * This resource reducer is false until the list loads successfully
 */ const loadedOnce = ( previousState = false , { type } ) => { if ( previousState === true ) { return previousState ; } if ( type === CRUD_GET_LIST_SUCCESS ) { return true ; } return previousState ; } ; export default loadedOnce ;