Skip to content

docs: update combined inject example#430

Merged
kevinmarrec merged 1 commit into
nuxt:masterfrom
simplesmiler:patch-1
Aug 11, 2020
Merged

docs: update combined inject example#430
kevinmarrec merged 1 commit into
nuxt:masterfrom
simplesmiler:patch-1

Conversation

@simplesmiler
Copy link
Copy Markdown
Contributor

@simplesmiler simplesmiler commented Aug 10, 2020

When using inject, the value is also injected into Context (source), so it should be covered in combined inject example.

Nuxt actually does inject value into `Context` ([source](https://github.com/nuxt/nuxt.js/blob/128c9743c40bf776af428e5ed36ea1a09a0ef7b8/packages/vue-app/template/index.js#L178)), so it should be covered in combined inject example.
@kevinmarrec
Copy link
Copy Markdown
Contributor

@simplesmiler Indeed, it's injected in context only since Nuxt 2.13+

@kevinmarrec kevinmarrec added the documentation The issue or pull request related to the documentation label Aug 11, 2020
@kevinmarrec kevinmarrec merged commit 611ba5b into nuxt:master Aug 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation The issue or pull request related to the documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants