You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed while I was uisng the v-wait component, my component that I was wrapping was being created twice. First on initial load, then again after my call to my API to load the data. Looking over the source and the vuejs docs I saw this:
I noticed while I was uisng the
v-wait
component, my component that I was wrapping was being created twice. First on initial load, then again after my call to my API to load the data. Looking over the source and the vuejs docs I saw this:https://vuejs.org/v2/guide/conditional.html#v-if-vs-v-show
Which states that:
"...child components inside the conditional block are properly destroyed and re-created during toggles"
I wonder if it would be better for
v-wait
to usev-show
instead? Or add an option?The text was updated successfully, but these errors were encountered: