redux-loader icon indicating copy to clipboard operation
redux-loader copied to clipboard

When resource find returns null, infinite busy loop occurs.

Open Rodeoclash opened this issue 10 years ago • 1 comments

  return {
    id,
    load() {
      const action = actions.fetchOne(ePId);
      return options.dispatch(action);
    },
    find() {
      // if I mess up the prop name (e.g. engagement_packages) the loader component will get stuck in an infinite loop instead of rendering the component.
      return _.find(options.props.engagementPackages, {id: ePId});
    },
  };

Rodeoclash avatar Oct 09 '15 03:10 Rodeoclash

Published 0.4.2. This will show a console warning if find returns null.

sporto avatar Oct 09 '15 05:10 sporto