ignore custom components in stateful components
This commit is contained in:
parent
583eec7286
commit
c61b2812f8
@ -1968,6 +1968,10 @@ class StatefulComponent(BaseComponent):
|
|||||||
"""
|
"""
|
||||||
from reflex.components.core.foreach import Foreach
|
from reflex.components.core.foreach import Foreach
|
||||||
|
|
||||||
|
if isinstance(component, CustomComponent):
|
||||||
|
# Do not memoize custom components.
|
||||||
|
return None
|
||||||
|
|
||||||
if component._memoization_mode.disposition == MemoizationDisposition.NEVER:
|
if component._memoization_mode.disposition == MemoizationDisposition.NEVER:
|
||||||
# Never memoize this component.
|
# Never memoize this component.
|
||||||
return None
|
return None
|
||||||
|
Loading…
Reference in New Issue
Block a user