I am migrating my Vue2 App to use @vue/composition-api (Vue version still 2 not 3).
In Vue2 I use my plugins like this.$session however this won't work on Vue3. The solution I found was to use like this:
setup (props, context) {
context.root.$session // works fine
context.root.$anotherPlugin
}
However in Vue3 context.root is @deprecated so when I migrate to Vue3 it will not work anymore.
Is there any other way to access Vue instance inside setup()? I think if I could access it I can use those plugins normally on Vue3.