fetch-component-data
Advanced tools
Comparing version 6.1.3 to 6.1.5
@@ -46,11 +46,12 @@ 'use strict'; | ||
branch.forEach(function (branch) { | ||
queue.defer(function (callback) { | ||
var Component = branch.route.component; | ||
if (!Component) return; | ||
while (Component.WrappedComponent) { | ||
Component = Component.WrappedComponent; | ||
} | ||
if (!Component.fetchData) return; | ||
var Component = branch.route.component; | ||
if (!Component) return callback(); | ||
while (Component.WrappedComponent) { | ||
Component = Component.WrappedComponent; | ||
} | ||
if (!Component.fetchData) return; | ||
queue.defer(function (callback) { | ||
var match = branch.match; | ||
@@ -57,0 +58,0 @@ |
{ | ||
"name": "fetch-component-data", | ||
"version": "6.1.3", | ||
"version": "6.1.5", | ||
"description": "Small util functions for Frameworkstein", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -22,11 +22,12 @@ import _ from 'lodash' // eslint-disable-line | ||
branch.forEach(branch => { | ||
queue.defer(callback => { | ||
let Component = branch.route.component | ||
if (!Component) return | ||
while (Component.WrappedComponent) { | ||
Component = Component.WrappedComponent | ||
} | ||
if (!Component.fetchData) return | ||
let Component = branch.route.component | ||
if (!Component) return callback() | ||
while (Component.WrappedComponent) { | ||
Component = Component.WrappedComponent | ||
} | ||
if (!Component.fetchData) return | ||
queue.defer(callback => { | ||
const match = branch.match | ||
@@ -33,0 +34,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package