nativescript-community / ui-collectionview

Allows you to easily add a collection view (grid list view) to your projects. Supports vertical and horizontal modes, templating, and more.
Apache License 2.0
59 stars 18 forks source link

Vue3: globalProperties are not passed to components in CollectionView templates #82

Closed MrSnoozles closed 2 weeks ago

MrSnoozles commented 3 weeks ago

Which platform(s) does your issue occur on?

Please, tell us how to recreate the issue in as much detail as possible.

When a CollectionView template has a component that uses globalProperties, the value of that property is undefined.

Is there any code involved?

https://stackblitz.com/edit/nativescript-vue-nativescript-vue-8wmhut?file=src%2Fapp.ts -> in components/Home.vue the value of app.config.globalProperties.$TEXT is set ✔ -> in components/Detail.vue the value of app.config.globalProperties.$TEXT is undefined ❌

farfromrefug commented 2 weeks ago

@vallemar maybe you can have a look at this? i dont use vue3 so would not know where to start

vallemar commented 2 weeks ago

@farfromrefug yes, I can check this!

MrSnoozles commented 1 week ago

@vallemar Thanks so much! @farfromrefug Could you release a version that contains this fix?

farfromrefug commented 1 week ago

@MrSnoozles done!