Answer the question
In order to leave comments, you need to log in
How to access $root component when using Composition API?
Tell me how to correctly access the $root component when working with the Composition API ?
I found an ambiguous solution in the open spaces, it works on DEV, but when building in production it does not work.
const root = getCurrentInstance();
root.ctx.$root.bodyOverflow(true);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question