We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b056ad commit fe0bc5bCopy full SHA for fe0bc5b
1 file changed
reflex/app.py
@@ -652,8 +652,6 @@ def __call__(self) -> ASGIApp:
652
raise ValueError(msg)
653
654
asgi_app = self._api
655
- # Make sure the RegistrationContext is attached.
656
- asgi_app.add_middleware(self._registration_context_middleware)
657
658
if environment.REFLEX_MOUNT_FRONTEND_COMPILED_APP.get():
659
asgi_app.mount(
@@ -687,8 +685,8 @@ def __call__(self) -> ASGIApp:
687
685
top_asgi_app = Starlette(lifespan=self._run_lifespan_tasks)
688
686
top_asgi_app.mount("", asgi_app)
689
App._add_cors(top_asgi_app)
690
-
691
- return top_asgi_app
+ # Make sure the RegistrationContext is attached.
+ return self._registration_context_middleware(top_asgi_app)
692
693
def _add_default_endpoints(self):
694
"""Add default api endpoints (ping)."""
0 commit comments