vuejs / devtools-v6

⚙️ Browser devtools extension for debugging Vue.js applications.
https://devtools-v6.vuejs.org/
MIT License
24.68k stars 4.14k forks source link

fix(vue3): inject value showing default over falsy value #1976

Closed psevertson closed 1 year ago

psevertson commented 2 years ago

Description

The Injects values are incorrectly coalescing falsy values to their default values when the component is written in Options mode.

Additional context

If a parent component provides a falsy value (false, null, 0, "", etc.), then a child component written in Options mode will incorrectly coalese that and show the default value given for the inject.


What is the purpose of this pull request?

Before submitting the PR, please make sure you do the following