Skip to content

Commit

Permalink
fix(Index): don't fetch more pages if already fetching
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Apr 15, 2023
1 parent e3eefcb commit 525918f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,11 @@ export default {
},
async onPageChange(page) {
if (this.$fetchState.pending) {
console.debug('Already fetching posts.')
return
}
await this.pidManager({ operation: 'set', value: page })
},
Expand Down

0 comments on commit 525918f

Please sign in to comment.