Skip to content

Commit f248a7b

Browse files
committed
release v0.11.1
1 parent b75f648 commit f248a7b

File tree

5 files changed

+29
-10
lines changed

5 files changed

+29
-10
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
v0.11.1 - Sat, 22 Nov 2014 15:00:37 GMT
2+
---------------------------------------
3+
4+
- [b75f648](../../commit/b75f648) [fixed] rendering current handlers before rendering root
5+
- [5695b9a](../../commit/5695b9a) [removed] addHandlerKey
6+
- [97d7a05](../../commit/97d7a05) [added] ActiveRouteHandler
7+
- [940a0d0](../../commit/940a0d0) [changed] use `Object.assign` instead of `copyProperties`
8+
- [f8cb7f9](../../commit/f8cb7f9) [changed] use `Object.assign` instead of `merge`
9+
- [70b442a](../../commit/70b442a) [added] React 0.12 compatibility
10+
11+
112
v0.11.0 - Sat, 22 Nov 2014 06:03:21 GMT
213
---------------------------------------
314

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-router",
3-
"version": "0.11.0",
3+
"version": "0.11.1",
44
"homepage": "https://github.com/rackt/react-router",
55
"authors": [
66
"Ryan Florence",

dist/react-router.js

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1434,6 +1434,12 @@ function createRouter(options) {
14341434
var onError = options.onError || defaultErrorHandler;
14351435
var onAbort = options.onAbort || defaultAbortHandler;
14361436
var state = {};
1437+
var nextState = {};
1438+
1439+
function updateState() {
1440+
state = nextState;
1441+
nextState = {};
1442+
}
14371443

14381444
// Automatically fall back to full page refreshes in
14391445
// browsers that don't support the HTML history API.
@@ -1598,11 +1604,11 @@ function createRouter(options) {
15981604
if (error || transition.isAborted)
15991605
return callback.call(router, error, transition);
16001606

1601-
state.path = path;
1602-
state.action = action;
1603-
state.routes = nextRoutes;
1604-
state.params = nextParams;
1605-
state.query = nextQuery;
1607+
nextState.path = path;
1608+
nextState.action = action;
1609+
nextState.routes = nextRoutes;
1610+
nextState.params = nextParams;
1611+
nextState.query = nextQuery;
16061612

16071613
callback.call(router, null, transition);
16081614
});
@@ -1623,7 +1629,7 @@ function createRouter(options) {
16231629
} else if (transition.isAborted) {
16241630
onAbort.call(router, transition.abortReason, location);
16251631
} else {
1626-
callback.call(router, router, state);
1632+
callback.call(router, router, nextState);
16271633
}
16281634
}
16291635

@@ -1680,10 +1686,12 @@ function createRouter(options) {
16801686
},
16811687

16821688
getInitialState: function () {
1689+
updateState();
16831690
return state;
16841691
},
16851692

16861693
componentWillReceiveProps: function () {
1694+
updateState();
16871695
this.setState(state);
16881696
},
16891697

dist/react-router.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-router",
3-
"version": "0.11.0",
3+
"version": "0.11.1",
44
"description": "A complete routing library for React.js",
55
"main": "./modules/index",
66
"repository": {

0 commit comments

Comments
 (0)