remove caching things
This commit is contained in:
parent
749577f0bc
commit
06b751f679
@ -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(
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user