Comparing version
@@ -120,2 +120,10 @@ 'use strict'; | ||
var nextTick = function nextTick(flux, action) { | ||
return function (state, pathname, query) { | ||
setTimeout(function () { | ||
return flux.dispatch(action, { state: state, pathname: pathname, query: query }); | ||
}); | ||
}; | ||
}; | ||
var AltRouter = (function (_React$Component) { | ||
@@ -147,2 +155,4 @@ _inherits(AltRouter, _React$Component); | ||
replaceState: dispatchable(flux, replaceState), | ||
pushStateAsync: nextTick(flux, pushState), | ||
replaceStateAsync: nextTick(flux, replaceState), | ||
store: store | ||
@@ -149,0 +159,0 @@ }; |
{ | ||
"name": "alt-router", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "Connect react-router to alt", | ||
@@ -5,0 +5,0 @@ "main": "lib/AltRouter.js", |
7872
4.4%150
6.38%