My component library is written using vue-demi and supports both Vue 2 and 3. Now, I want to make it reusable in React as well. I'm considering switching to MobX for writing the logic. However, I found that useLocalObservable from mobx-vue-lite seems to support Vue 2 and 3, but it doesn't support the following code structure.
I can use it like this in Vue 3, but currently, the code is not working in Vue 2. Is it possible to make it compatible with Vue 2? I apologize for asking this question after explicitly mentioning that mobx-vue supports Vue 2. I am still looking forward to receiving a response. Thank you.
My component library is written using vue-demi and supports both Vue 2 and 3. Now, I want to make it reusable in React as well. I'm considering switching to MobX for writing the logic. However, I found that useLocalObservable from mobx-vue-lite seems to support Vue 2 and 3, but it doesn't support the following code structure.
I can use it like this in Vue 3, but currently, the code is not working in Vue 2. Is it possible to make it compatible with Vue 2? I apologize for asking this question after explicitly mentioning that mobx-vue supports Vue 2. I am still looking forward to receiving a response. Thank you.