vuejs / composition-api

Composition API plugin for Vue 2
https://composition-api.vuejs.org/
MIT License
4.19k stars 343 forks source link

fix(inject): allow default value to be undefined #930

Closed seanogdev closed 2 years ago

seanogdev commented 2 years ago

Matches vue 3's implementation on provide/inject where passing undefined as a defaultValue silences the error

https://github.com/vuejs/core/pull/894/files