userback / widget-js

MIT License
4 stars 3 forks source link

Vue Composition and vue-demi #36

Closed Shard closed 1 year ago

Shard commented 2 years ago

After doing a bit more research, the best way to support vue2 without creating a separate package is to use vue-demi.

vue-demi utilizes @vue/composition-api to achieve the shim, which means we need to change the @userback/vue plugin to use the composition api instead of globalProperties.

This will still allow for a very similar api for the end user with $userback but will also allow for new functions, similar to the react hooks.

Shard commented 1 year ago

Closing PR in favour of a @userback/vue2 package due to the user-side complexity vue-demi introduces.