remove caching things

This commit is contained in:
Khaleel Al-Adhami 2025-01-31 14:28:40 -08:00
parent 749577f0bc
commit 06b751f679
2 changed files with 2 additions and 27 deletions

View File

@ -9,7 +9,7 @@ from reflex.components.tags import Tag
from reflex.components.tags.tagless import Tagless
from reflex.utils.imports import ParsedImportDict
from reflex.vars import BooleanVar, ObjectVar, Var
from reflex.vars.base import VarData, get_var_caching, set_var_caching
from reflex.vars.base import VarData
class Bare(Component):
@ -160,10 +160,7 @@ class Bare(Component):
for component in var_data.components:
if isinstance(component, Component):
component._add_style_recursive(style, theme)
if get_var_caching():
set_var_caching(False)
str(new_self)
set_var_caching(True)
return new_self
def _get_vars(

View File

@ -148,28 +148,6 @@ def unwrap_reflex_callalbe(
return args
_VAR_CACHING = True
def get_var_caching() -> bool:
"""Get the var caching status.
Returns:
The var caching status.
"""
return _VAR_CACHING
def set_var_caching(value: bool):
"""Set the var caching status.
Args:
value: The value to set the var caching status to.
"""
global _VAR_CACHING
_VAR_CACHING = value
@dataclasses.dataclass(
eq=False,
frozen=True,