Skip to content

Commit

Permalink
Make sure you can't do a mutation twice simultaneously (#740)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jade-GG authored Feb 21, 2025
1 parent fb62667 commit e585838
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions resources/js/components/GraphqlMutation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ export default {
methods: {
async mutate() {
if (this.running) {
return
}
this.running = true
this.error = false
Expand Down

0 comments on commit e585838

Please sign in to comment.