flux-router-component
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -20,3 +20,9 @@ var debug = require('debug')('navigateAction'); | ||
var action = route.config && route.config.action; | ||
if (!action) { | ||
if ('string' === typeof action && context.getAction) { | ||
action = context.getAction(action); | ||
} | ||
if (!action || 'function' !== typeof action) { | ||
debug('route has no action, dispatching without calling action'); | ||
context.dispatch('CHANGE_ROUTE_SUCCESS', route); | ||
@@ -27,3 +33,3 @@ done(); | ||
// Execute route handler | ||
debug('executing route action'); | ||
context.executeAction(action, route, function (err) { | ||
@@ -30,0 +36,0 @@ if (err) { |
{ | ||
"name": "flux-router-component", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Router-related React component and mixin for applications with Flux architecture", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
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
45724
272