Commit 06b751f 1 parent 749577f commit 06b751f Copy full SHA for 06b751f
File tree 2 files changed +2
-27
lines changed
2 files changed +2
-27
lines changed Original file line number Diff line number Diff line change 9
9
from reflex .components .tags .tagless import Tagless
10
10
from reflex .utils .imports import ParsedImportDict
11
11
from reflex .vars import BooleanVar , ObjectVar , Var
12
- from reflex .vars .base import VarData , get_var_caching , set_var_caching
12
+ from reflex .vars .base import VarData
13
13
14
14
15
15
class Bare (Component ):
@@ -160,10 +160,7 @@ def _add_style_recursive(
160
160
for component in var_data .components :
161
161
if isinstance (component , Component ):
162
162
component ._add_style_recursive (style , theme )
163
- if get_var_caching ():
164
- set_var_caching (False )
165
- str (new_self )
166
- set_var_caching (True )
163
+
167
164
return new_self
168
165
169
166
def _get_vars (
Original file line number Diff line number Diff line change @@ -148,28 +148,6 @@ def unwrap_reflex_callalbe(
148
148
return args
149
149
150
150
151
- _VAR_CACHING = True
152
-
153
-
154
- def get_var_caching () -> bool :
155
- """Get the var caching status.
156
-
157
- Returns:
158
- The var caching status.
159
- """
160
- return _VAR_CACHING
161
-
162
-
163
- def set_var_caching (value : bool ):
164
- """Set the var caching status.
165
-
166
- Args:
167
- value: The value to set the var caching status to.
168
- """
169
- global _VAR_CACHING
170
- _VAR_CACHING = value
171
-
172
-
173
151
@dataclasses .dataclass (
174
152
eq = False ,
175
153
frozen = True ,
You can’t perform that action at this time.
0 commit comments