Skip to content

Commit

Permalink
fix(core): 🐛 make page hook async
Browse files Browse the repository at this point in the history
to allow @barba/router to resolve routes before getting a transition
  • Loading branch information
thierrymichel committed Jun 25, 2019
1 parent 6952d59 commit 10e66d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ export class Core {

// Hook: between trigger and transition
// Can be used to resolve "route"…
this.hooks.do('page', data);
await this.hooks.do('page', data);

try {
const transition = this.transitions.get(data, {
Expand Down

0 comments on commit 10e66d9

Please sign in to comment.