We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7230bd commit 161fee5Copy full SHA for 161fee5
reflex/event.py
@@ -1866,6 +1866,9 @@ def fix_events(
1866
# Fix the events created by the handler.
1867
out = []
1868
for e in events:
1869
+ if callable(e) and e.__qualname__ == "<lambda>":
1870
+ # A lambda was returned, assume the user wants to call it with no args.
1871
+ e = e()
1872
if isinstance(e, Event):
1873
# If the event is already an event, append it to the list.
1874
out.append(e)
0 commit comments