feat(app.runWithContext): Support getCurrentInstance
#8594
Labels
has workaround
A workaround has been found to avoid the problem
✨ feature request
New feature or request
What problem does this feature solve?
When
getCurrentInstance
is used withinapp.runWithContext
- top-level component instance should be returned (if it already exists). This should allow easier usage of Vue features outside components.This behavior can currently be 'emulated' with
app.provide
, but it feels like there should be no need for this workaround.runWithContext
was first introduced in #7451What does the proposed API look like?
The text was updated successfully, but these errors were encountered: