[axios] this.$delete is overlapping vue's this.$delete

BjornMelgaard
73
BjornMelgaard
commented 3 years ago

because of this I have real error, like this one:
plugin is using vue's $delete, but it is overlapped by axios $delete

I suggest to remove $delete, $post … aliases and leave access to them only through $axios

bug
0
BjornMelgaard
73
BjornMelgaard
commented 3 years ago

@pi0, can you push changes into npm, please?

0
pi0
39.6k
pi0
commented 3 years ago

Sure. As it was a breaking change it is now released under @nuxtjs/axios:3.0.0

0
pi0
39.6k
pi0
commented 3 years ago

Also as a note, $ helpers will be added as $axios attrs again in next releases for easier axios usage:

// Current usage
let posts = (await this.$axios.get('posts').data

// Easier usage
let posts = await this.$axios.$get('posts')

I don't think they may make any conflict under $axios scope :)

0
BjornMelgaard
73
BjornMelgaard
commented 3 years ago

ok, I think I can live with that)

P.S. error was fixed, tnks

0
Informations
Bug ReportOpen
#c58 - Created 3 years ago