Skip to content

Commit

Permalink
fix bug in memoization mode copy
Browse files Browse the repository at this point in the history
  • Loading branch information
benedikt-bartscher committed Mar 5, 2024
1 parent a61e704 commit 141be37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reflex/components/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -1864,7 +1864,7 @@ def create(cls, *children, **props) -> Component:
"""
comp = super().create(*children, **props)
if comp.get_hooks():
comp._memoization_mode = cls._memoization_mode.model_copy(
comp._memoization_mode = comp._memoization_mode.model_copy(
update={"disposition": MemoizationDisposition.ALWAYS}
)
return comp

0 comments on commit 141be37

Please sign in to comment.