Skip to content

Commit

Permalink
Await dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgv committed Jul 4, 2019
1 parent f06a83a commit 17f17d8
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 17f17d8

Please sign in to comment.