v0.12.0
Pre-release
Pre-release
transition.wait
was removed, you now use a callback instead:
// 0.11.x
var SomeHandler = React.createClass({
statics: {
willTransitionTo (transition) {
transition.wait(somePromise());
}
}
});
// 0.12.0
var SomeHandler = React.createClass({
statics: {
willTransitionTo (transition, params, query, callback) {
somePromise().then(callback);
}
}
});
Changes
- cd2087d [added] default handler to routes
- 848361e [fixed] Clean up mounted route component on unmount so we don't leak references
- 5bcf653 [fixed] Double slash in href when parent route has optional trailing slash
- e280efd [changed] Don't restore scroll position on Forward
- 20c2c9b [fixed] Do not decode + in pathname
- fe5ec39 [fixed] Double-encoding of query strings
- df38294 [fixed] Allow comments in JSX config
- 84056ba [fixed] Ignore falsy routes
- 4a770e8 [fixed] Using TestLocation without DOM
- 2ac2510 [added] router.replaceRoutes(children)
- 1f81286 [fixed] Ignore stale transitions
- c6ed6fa [removed] transition.wait, use callbacks instead
- 75c6206 [added] router.stop()
- 4e96256 [fixed] Preserve original query with HashLocation
- 2f19e63 [changed] Bump qs dependency version