Closed yaquawa closed 2 years ago
I can't provide() value with symbol, is this intended?
provide()
it gives such an error: [Vue warn]: injection "undefined" not found.
[Vue warn]: injection "undefined" not found.
reproduce: https://codesandbox.io/s/vue-2-composition-api-forked-k7unx?file=/src/App.vue
This is because you have a circular dependency. Avoid circular dependency, please.
Move export const ConditionIK = Symbol("Condition"); to another new file and import it.
export const ConditionIK = Symbol("Condition");
https://codesandbox.io/s/vue-2-composition-api-forked-td0cm
I can't
provide()
value with symbol, is this intended?it gives such an error:
[Vue warn]: injection "undefined" not found.
reproduce: https://codesandbox.io/s/vue-2-composition-api-forked-k7unx?file=/src/App.vue