We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5825564 commit 876c8e4Copy full SHA for 876c8e4
1 file changed
reflex/event.py
@@ -2213,8 +2213,12 @@ def wrapper(
2213
setattr(handler, BACKGROUND_TASK_MARKER, True)
2214
# Mark the function as a decentralized event handler
2215
setattr(func, DECENTRALIZED_EVENT_MARKER, True)
2216
- # Return the original function so it can be called normally
2217
- return func # pyright: ignore [reportReturnType]
+
+ # Create a wrapped version that can handle parameters
2218
+ wrapped = wrap_decentralized_handler(func)
2219
2220
+ # Return the wrapped function instead of the original
2221
+ return wrapped # pyright: ignore [reportReturnType]
2222
2223
if func is not None:
2224
return wrapper(func)
0 commit comments