inject/provide does not work with createVNode and render
Version
3.0.5
Reproduction link
https://codesandbox.io/s/gifted-goldwasser-ysz0d
Steps to reproduce
- use provide in the parent component
- Render component to child element with
createVNode
andrender
- The rendered component won't have access to inject
What is expected?
Access to injected values from parent
What is actually happening?
Inject result is always undefined.
You shouldn't be using those functions manually. In general, if it doesn't appear in the documentation, you should avoid it