[Vue] Allow inject in callbacks by implementing runWithContext #5424
Unanswered
JoostKersjes
asked this question in
Ideas
Replies: 2 comments 1 reply
-
Callback on |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @DamianOsipiuk, what do you recommend as alternative when combining |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I was recently playing around with provide/inject and discovered that inject does not work in callbacks like query
onSuccess
.Vue 3.3 introduced
app.runWithContext()
(vuejs/core#7451) which allows inject to work outside of components.vue-router
implementedrunWithContext
so their global route guards can use inject: vuejs/router@909c45bBeta Was this translation helpful? Give feedback.
All reactions