Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

functional comp. provide -> functional comp. inject #11015

Closed
ibyteyou opened this issue Jan 16, 2020 · 1 comment
Closed

functional comp. provide -> functional comp. inject #11015

ibyteyou opened this issue Jan 16, 2020 · 1 comment

Comments

@ibyteyou
Copy link

Version

2.6.11

Reproduction link

https://codepen.io/PatriciusSanctus/pen/PowdQpq

Steps to reproduce

Vue.component('func-parent', {
  functional: true,
  provide: () => ({ foo: 'bar' }) // || { foo: 'bar' }
})
Vue.component('func-child', {
  functional: true,
  inject: ['foo']
})

What is expected?

i want use injection in render() function

What is actually happening?

[Vue warn]: Injection "foo" not found


without DOM i can't send parent`s props to child for control child behavior (simple example: "grid-row -> grid-col")

@posva
Copy link
Member

posva commented Jan 16, 2020

Duplicate of #5837

@posva posva marked this as a duplicate of #5837 Jan 16, 2020
@posva posva closed this as completed Jan 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants