wharfkit / example-vite-vue-ts

An example integration of the Wharf Web Renderer using create-vite + vue + ts
0 stars 0 forks source link

Considering Provide/Inject when composing Vue components #2

Open rakeden opened 1 year ago

rakeden commented 1 year ago

A suggested change for less code and better maintainability is to move the vue implementation into vue3 composition API instead of globalProperties as described here: https://vuejs.org/guide/components/provide-inject.html

Any thoughts on this?

aaroncox commented 1 year ago

Good feedback, absolutely not opposed if it'll end up being better from a vue3 point of view.

We haven't used vue much so this is exactly the kind of feedback we're looking for to use in these examples!