kytos-ng / ui

Kytos Admin UI
MIT License
0 stars 3 forks source link

Components can no longer be registered globally #85

Open HeriLFIU opened 2 months ago

HeriLFIU commented 2 months ago

Issue

You can no longer globally register components within Vue3 (Register components from anywhere within the code) by utilizing Vue.component().

Possible Fix

It is possible within Vue3 to get an instance of the current app and use it to register a component.

Example in Code

https://github.com/kytos-ng/ui/blob/4c1d92bf69fced958eaaa22aff98612d7c87d2b6/src/components/kytos/napp/Toolbar.vue#L59

Documentation

https://v3-migration.vuejs.org/breaking-changes/global-api.html#global-api-application-instance