spinnerWhileLoading = propNames =>
  spinnerWhile(props => some(propNames, name => !isLoaded(props[name])))
Show a loading spinner while props are loading . Checks
for undefined, null, or a value (as well as handling `auth.isLoaded` and
`profile.isLoaded`). **NOTE:** Meant to be used with props which are passed
as props from state.firebase using connect (from react-redux), which means
it could have unexpected results for other props
@example Spinner While Data Loading
import { compose } from 'redux'
import { connect } from 'react-redux'
import { firebaseConnect } from 'react-redux-firebase'

const enhance = compose(
  firebaseConnect(['projects']),
  connect(({ firebase: { data: { projects } } })),
  spinnerWhileLoading(['projects'])
)

export default enhance(SomeComponent)
@param  {Array} propNames - List of prop names to check loading for
@return {HigherOrderComponent}