Skip to content

Commit

Permalink
refactor: delayed engine client call
Browse files Browse the repository at this point in the history
  • Loading branch information
agalwood committed May 24, 2019
1 parent 1b2b22f commit b9cd991
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/renderer/components/Native/EngineClient.vue
Original file line number Diff line number Diff line change
Expand Up @@ -206,13 +206,16 @@
}
},
created: function () {
this.$store.dispatch('app/fetchEngineInfo')
this.$store.dispatch('app/fetchEngineOptions')
this.startPolling()
this.bindEngineEvents()
},
mounted: function () {
setTimeout(() => {
this.$store.dispatch('app/fetchEngineInfo')
this.$store.dispatch('app/fetchEngineOptions')
this.startPolling()
}, 100)
},
destroyed: function () {
this.$store.dispatch('task/saveSession')
Expand Down

0 comments on commit b9cd991

Please sign in to comment.