Skip to content

Commit

Permalink
fix(vuex): load button should skip debounce
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Chau committed Oct 29, 2019
1 parent 11713c5 commit c9cb98f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/app-frontend/src/views/vuex/VuexStateInspector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
data-id="load-vuex-state"
icon-left="arrow_forward"
class="accent flat"
@click="loadState()"
@click="loadStateNow()"
>
Load state
</VueButton>
Expand Down Expand Up @@ -313,9 +313,13 @@ export default {
}, 250),
loadState: debounce(function () {
this.loadStateNow()
}, 300),
loadStateNow () {
const history = this.filteredHistory
this.inspect(history[history.length - 1])
}, 300),
},
onMutation () {
if (this.$shared.vuexAutoload) {
Expand Down

0 comments on commit c9cb98f

Please sign in to comment.