Skip to content

Inject/provides can you just consume or can you also provide? #1845

Closed Answered by posva
sgpinkus asked this question in Help and Questions
Discussion options

You must be logged in to vote

You can only inject. It allows to inject any globals like i18n or anything else that is provided with app.provide().

Note that importing from the root works in SPAs but doesn't on SSR (exposes to cross state pollution). That might be why you don't find this useful 😄

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by posva
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants