Skip to content

Commit 1abc7dc

Browse files
authored
Allow auto memoization of Component Cond (#5272)
1 parent 96ff0b5 commit 1abc7dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reflex/components/core/cond.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from typing import Any, overload
66

77
from reflex.components.base.fragment import Fragment
8-
from reflex.components.component import BaseComponent, Component, MemoizationLeaf
8+
from reflex.components.component import BaseComponent, Component
99
from reflex.components.tags import CondTag, Tag
1010
from reflex.constants import Dirs
1111
from reflex.style import LIGHT_COLOR_MODE, resolved_color_mode
@@ -20,7 +20,7 @@
2020
}
2121

2222

23-
class Cond(MemoizationLeaf):
23+
class Cond(Component):
2424
"""Render one of two components based on a condition."""
2525

2626
# The cond to determine which component to render.

0 commit comments

Comments
 (0)