some components and code examples used `_var_name_unwrapped`, so map this property back to `_js_expr` and deprecate it.
@@ -119,6 +119,16 @@ class Var(Generic[VAR_TYPE]):
"""
return self._js_expr
+ @property
+ @deprecated("Use `_js_expr` instead.")
+ def _var_name_unwrapped(self) -> str:
+ """The name of the var without extra curly braces.
+
+ Returns:
+ The name of the var.
+ """
+ return self._js_expr
@property
def _var_is_string(self) -> bool:
"""Whether the var is a string literal.