Skip to content

Commit

Permalink
fix(goBack): was missing mobx decoration as action
Browse files Browse the repository at this point in the history
  • Loading branch information
AoDev committed Mar 10, 2021
1 parent 2763d03 commit ebb3468
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/BardRouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,11 +269,12 @@ export default class BardRouter {
this.app = options.app
this.eventHandlers = {beforeNav: [], afterNav: []}
mobx.makeObservable(this, {
story: mobx.observable.ref,
route: mobx.observable,
params: mobx.observable.ref,
goTo: mobx.action.bound,
currentRouteConfig: mobx.computed,
goBack: mobx.action.bound,
goTo: mobx.action.bound,
params: mobx.observable.ref,
route: mobx.observable,
story: mobx.observable.ref,
})
}
}

0 comments on commit ebb3468

Please sign in to comment.