nanostores / vue

Vue integration for Nano Stores, a tiny state manager with many atomic tree-shakable stores
MIT License
51 stars 5 forks source link

Use with @vue/compat #8

Closed MirzetKameric closed 1 year ago

MirzetKameric commented 1 year ago

Will it be possible to use this with @vue/compat package?

I setup a vue3 project with some older vue2 dependencies and am using @vue/compat. Cannot make nanostores work, so I am wondering is it even possible at the moment to do this?

euaaaio commented 1 year ago

Nanostores compatible only with Vue 3 Composition API.

I am not quite familiar with @vue/compat. I need more details about what you’re doing and what’s going on, to help you

MirzetKameric commented 1 year ago

@euaaaio Thx for the response. In short, vue compat gives you the option to have vue3 application with some parts inside that are vue2. And you can setup config for some functions whether you want to use vue2 or vue3 logic. I think nanostores are not compatible with this atm. Maybe it is possible to use them with composition api there as well.

I decided not to use them with the project for now but to implement them in the future when we move away completely from vue2.