-
-
Notifications
You must be signed in to change notification settings - Fork 7
Usage in firefox causes infinite vue loop when v-model is used #188
Comments
I noticed if I use |
Actually, if I display the result of the Think I found the source. Now why is it firing infinitely? And why only if I update the view from the result of the location being selected? (Even marking a checkbox as true will cause the infinite loop...) |
It actually looks like anytime ANYTHING changes in the view, the component re-fires on:input events. |
Thanks for making some investigations :)
What do you mean by this? I've tried the interactive playground on Firefox 60.6 and it's working fine. If I make the autocomplete clearable, I clear it, and I enter a new address, it works.
Hum, that's possible, I'm seeing multiple places where
|
This is a tricky one, and I can't reproduce it outside of my environment, you might have some ideas.
If the
v-model
forvuetify-algolia-places
is blank, and I search and select a location. Vue goes into what seems to be an infinite loop. Ifv-model
is omitted, it will select the location as expected. Ifv-model
is a full address it hangs immediately upon loading the page.This also only affects development builds, not production builds.
From a profiler call stack I see that these are the primary offenders (in this order):
updateChildComponent()
toString()
addDep()
CreateComponent()
On a flame-graph I see:
It seems this is made up of, almost entirely, of DOM updates from vue.
Any idea if there is something in this component tripping off an infinite loop of some kind in Vue? Maybe centered around
Note: This is the version before adding debounce, so not related to that. This also only affects Firefox.
The text was updated successfully, but these errors were encountered: