function spinnerWhile(condition) {
  return branch(condition, renderComponent(LoadingSpinner))
}
Show a loading spinner when a condition is truthy. Used within
spinnerWhileLoading. Accepts a test function and a higher-order component.
@param {Function} condition - Condition function for when to show spinner
@returns {HigherOrderComponent}