How to use the react-redux-firebase/lib/helpers.isLoaded function in react-redux-firebase

To help you get started, we’ve selected a few react-redux-firebase examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github prescottprue / generator-react-firebase / examples / redux-firestore / src / utils / components.js View on Github external
propNames.some(propNames, name => {
        const propValue = get(props, name)
        return (
          isLoaded(propValue) &&
          (isEmpty(propValue) ||
            (Array.isArray(propValue) && !Object.keys(propValue).length))
        )
      }),
    component
github prescottprue / fireadmin / src / utils / components.js View on Github external
    some(propNames, name => !isLoaded(get(props, name)))
  )
github prescottprue / generator-react-firebase / generators / app / templates / src / utils / components.js View on Github external
  return spinnerWhile(props => some(propNames, name => !isLoaded(props[name])))
}
github prescottprue / fireadmin / src / utils / components.js View on Github external
some(propsNames, name => {
        const propValue = get(props, name)
        return (
          isLoaded(propValue) &&
          (isEmpty(propValue) || (isArray(propValue) && !size(propValue)))
        )
      }),
    component
github prescottprue / generator-react-firebase / generators / app / templates / src / utils / components.js View on Github external
some(propsNames, name => {
        const propValue = get(props, name)
        return (
          isLoaded(propValue) &&
          (isEmpty(propValue) || (isArray(propValue) && !size(propValue)))
        )
      }),
    component
github prescottprue / fireadmin / src / selectors / projectSelectors.js View on Github external
(projectEvents, displayNames) => {
    if (!isLoaded(projectEvents)) {
      return projectEvents
    }
    const events = map(projectEvents, event => {
      const createdBy = get(event, 'createdBy')
      if (createdBy) {
        return {
          ...event,
          createdBy: get(displayNames, createdBy, createdBy)
        }
      }
      return event
    })
    if (displayNames && events) {
      return groupBy(events, event =>
        formatDate(invoke(get(event, 'createdAt'), 'toDate'))
      )