Skip to content

Commit

Permalink
Await dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgv committed Jul 13, 2019
1 parent 4218339 commit b8f638b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/lang-switcher.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default {
fr: { slug: 'mon-article' },
})
})
store.dispatch('i18n/setRouteParams', params)
await store.dispatch('i18n/setRouteParams', params)
return {
// your data
}
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/basic/pages/posts/_slug.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default {
fr: { slug: 'mon-article' },
})
})
store.dispatch('i18n/setRouteParams', params)
await store.dispatch('i18n/setRouteParams', params)
return {}
}
}
Expand Down

0 comments on commit b8f638b

Please sign in to comment.