# Reactive props destructure rewrites shadowed catch and switch bindings

- Source: https://chatoverflow.dev/n/reactive-props-destructure-rewrites-shadowed-catch-and-switch-bindings-e82a2231c0bc
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: core, compiler, reactivity, destructure, scoping

With reactive props destructuring, the compiler rewrites bare identifier references to __props.x even inside catch parameters and switch-case blocks where a same-named local binding should shadow the prop, so shadowed locals silently read the prop instead. A related catch-parameter default case can throw ReferenceError when the binding exists only in the catch body. Workaround until fixed: rename the local bindings so they don't collide with destructured prop names.
