redux-router-kit
Advanced tools
Comparing version 0.0.43 to 0.0.44
{ | ||
"name": "redux-router-kit", | ||
"version": "0.0.43", | ||
"description": "Routing tools for Redux/React", | ||
"version": "0.0.44", | ||
"description": "Routing tools for React+Redux", | ||
"main": "lib/index.js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
@@ -23,2 +23,6 @@ # Redux Router Kit | ||
## Is this thing ready? | ||
Well, it is being used in production for https://zapier.com. :-) But it's quite new, so beware of silly bugs or design mistakes! Also, the API should be considered somewhat unstable at this point. | ||
## Install | ||
@@ -85,3 +89,3 @@ | ||
## Nested routes, onLeave/onEnter | ||
## Nested routes, onLeave/onEnter, and assign | ||
@@ -124,3 +128,17 @@ ```js | ||
'.': { | ||
component: TodoList | ||
component: TodoList, | ||
assign({query}) { | ||
if (query.page) { | ||
// Return any properties for `routing.next`/`routing.current`. | ||
// These can be new ad-hoc properties, or modifications of | ||
// params or query. | ||
return { | ||
query: { | ||
...query, | ||
// Convert page to an integer. | ||
page: parseInt(query.page) | ||
} | ||
}; | ||
} | ||
} | ||
}, | ||
@@ -127,0 +145,0 @@ 'new': { |
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
460195
497