Skip to content

Commit 5f296ee

Browse files
authored
[ENG-3817] deprecate _var_name_unwrapped (instead of removing it) (#3951)
some components and code examples used `_var_name_unwrapped`, so map this property back to `_js_expr` and deprecate it.
1 parent c46d1d9 commit 5f296ee

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

reflex/vars/base.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,16 @@ def _var_name(self) -> str:
119119
"""
120120
return self._js_expr
121121

122+
@property
123+
@deprecated("Use `_js_expr` instead.")
124+
def _var_name_unwrapped(self) -> str:
125+
"""The name of the var without extra curly braces.
126+
127+
Returns:
128+
The name of the var.
129+
"""
130+
return self._js_expr
131+
122132
@property
123133
def _var_is_string(self) -> bool:
124134
"""Whether the var is a string literal.

0 commit comments

Comments
 (0)