From 8173e1069865d893ba96c47728c5c26aecdec44f Mon Sep 17 00:00:00 2001 From: Khaleel Al-Adhami Date: Wed, 22 Jan 2025 12:51:01 -0800 Subject: [PATCH] ok we can unbreak foreach just for you --- reflex/components/core/foreach.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/reflex/components/core/foreach.py b/reflex/components/core/foreach.py index c032727bb..46faf16b2 100644 --- a/reflex/components/core/foreach.py +++ b/reflex/components/core/foreach.py @@ -45,3 +45,9 @@ def foreach( ) return iterable.foreach(render_fn) + + +class Foreach: + """Create a list of components from an iterable.""" + + create = staticmethod(foreach)