Skip to content

Commit

Permalink
Merge pull request #15 from ishabo/force-start-service-on-history-change
Browse files Browse the repository at this point in the history
force start service on history pop
  • Loading branch information
carloslfu authored Mar 26, 2020
2 parents e0d9d48 + ae31294 commit a001c78
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,16 @@ export function handleTransitionEvents (service, history, routes) {
})

history.listen(location => {

if (!service.initialized) {
service.start();
}

if (debounceHistoryFlag) {
debounceHistoryFlag = false
return
}

handleRouterTransition(location, true)
})

Expand Down

0 comments on commit a001c78

Please sign in to comment.