Skip to content

Commit d3e7b40

Browse files
Merge pull request cerebral#204 from Cloudo/patch-1
fix error in onInitialize
2 parents 89ece07 + 6b7d133 commit d3e7b40

File tree

1 file changed

+1
-1
lines changed
  • packages/overmind-website/examples/guide/routing

1 file changed

+1
-1
lines changed

packages/overmind-website/examples/guide/routing/pagejs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default onInitialize
2121
{
2222
fileName: 'overmind/onInitialize.ts',
2323
code: `
24-
const onInitialize = ({ actions, router }) => {
24+
const onInitialize = ({ actions, effects }) => {
2525
effects.router.route('/', actions.showHomePage)
2626
effects.router.route('/users', actions.showUsersPage)
2727
effects.router.route<{ id: string }>('/users/:id', actions.showUserModal)

0 commit comments

Comments
 (0)