Open JamesPoel opened 2 years ago
Replacing:
export function install (VueInstance) {
VueInstance.prototype.$deepModel = deepModel
VueInstance.prototype.$vueSet = vueSet
VueInstance.prototype.$vuexSet = vuexSet
}
with:
export function install (VueInstance) {
VueInstance.config.globalProperties.$deepModel = deepModel;
VueInstance.config.globalProperties.$vueSet = vueSet;
VueInstance.config.globalProperties.$vuexSet = vuexSet;
}
Seems to get the plugin semi-working with Vue3 (although probably isn't backwards-compatible with 1/2), however the plugin also uses Vue.set which is defunct as of Vue3.
@JamesPoel Perhaps this is not the right place for asking something like this, but I'm curious.
Are you using vue-deepset for state management support (Vuex with esteroids) ?
In case this is true, If you are using Inertia, why are you needing and state management layer ?
Please, don't get me wrong, I just want to know because your proposal seems very interested to my.
.use(VueDeepSet) fires the exception: