http-vue-loader icon indicating copy to clipboard operation
http-vue-loader copied to clipboard

Clarification: httpVueLoader(...)() kinda works most of the time.

Open sp00x opened this issue 6 years ago • 1 comments

Mostly a clarification/question:

I had an issue here where suddenly in my project I was not able to use custom components registered in the "outer" Vue environment any more, and the same with $plugins: they were not available (undefined) on this.$* but was available through this.$root.$* (in the http-vue-loader components' contexts).

I eventually tracked it down to having used httpVueLoader(url)() instead of just httpVueLoader(url) when loading the components. I'm not sure why the first variant event works, but apparently it did.

The first variant DOES seems to work a random'th portion of the time, but then just suddenly starts misbehaving again, then works again, then stops working. Is there any logic behind this? :) A promise / caching / load time race condition combo of sorts?

sp00x avatar Nov 20 '18 09:11 sp00x

Are you able to provide a minimalist testcase ?

FranckFreiburger avatar Dec 03 '18 21:12 FranckFreiburger