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
My project was build by vite, and it was registed vomposition-api ,such as this:
import Vue from 'vue';
import VCA from '@vue/composition-api';
Vue.use(VCA);
window.Vue = Vue;
...
Then,My component will register composition-api by CDN , because it is not sure if the project is ready rigisted composition-api.(I know this is a strange way)
now, my project(window.Vue ) has been registed compostion-api twice,beause there are two different composition-api.
after that, when each component is created, setup will executed twice.
how to avoid this condition if I only want register composition-api once?
The text was updated successfully, but these errors were encountered:
vanclimber
changed the title
How to avoid duplicate register vomposition-api ?
How to avoid duplicate register composition-api ?
Jan 5, 2023
My project was build by vite, and it was registed vomposition-api ,such as this:
Then,My component will register composition-api by
CDN
, because it is not sure if the project is ready rigisted composition-api.(I know this is a strange way)now, my project(
window.Vue
) has been registed compostion-api twice,beause there are two different composition-api.after that, when each component is created, setup will executed twice.
how to avoid this condition if I only want register composition-api once?
The text was updated successfully, but these errors were encountered: