Provide & inject not working when injection has default value
Version
3.0.0-rc.10
Reproduction link
https://codesandbox.io/s/vue-provide-inject-mg2oy?file=/src/index.js
Steps to reproduce
https://codesandbox.io/s/vue-provide-inject-mg2oy?file=/src/index.js
What is expected?
It should render without error
Accroding to https://v3.vuejs.org/api/options-composition.html#provide-inject
I think it should work
What is actually happening?
injection is null
It looks like a problem with from
being missing:
I suspect that should be defaulting to key
if from
isn't set.