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 23d01e8 commit 19c2642Copy full SHA for 19c2642
reflex/app_mixins/middleware.py
@@ -74,6 +74,7 @@ async def _postprocess(
74
Returns:
75
The state update to return.
76
"""
77
+ out = update
78
for middleware in self._middlewares:
79
if asyncio.iscoroutinefunction(middleware.postprocess):
80
out = await middleware.postprocess(
@@ -89,6 +90,4 @@ async def _postprocess(
89
90
event=event,
91
update=update,
92
)
- if out is not None:
93
- return out # pyright: ignore [reportReturnType]
94
- return update
+ return out # pyright: ignore[reportReturnType]
0 commit comments