Skip to content

Commit

Permalink
Merge pull request #8 from wdhorton/update-readme
Browse files Browse the repository at this point in the history
Update README to correct parameters of the meta transition function.
  • Loading branch information
johanneslumpe committed Mar 29, 2016
2 parents 2d567b0 + 6cd254e commit 0c483aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -52,7 +52,7 @@ export default {
userId: 123
}
meta: {
transition: (state, action) => ({
transition: (prevState, nextState, action) => ({
pathname: `/logged-in/${action.payload.userId}`,
search: '?a=query',
state: {
Expand Down Expand Up @@ -82,7 +82,7 @@ export default {
userId: 123
}
meta: {
transition: (state, action) => (
transition: (prevState, nextState, action) => (
Promise.delay(3000).then(() => {
pathname: `/logged-in/${action.payload.userId}`,
search: '?a=query',
Expand Down

0 comments on commit 0c483aa

Please sign in to comment.