Skip to content

Commit 526d5a2

Browse files
committed
Read routes from _unevaluated_pages
On the backend, _pages may be empty if the compile was skipped.
1 parent b816328 commit 526d5a2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

reflex/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ def router(self) -> Callable[[str], str | None]:
864864
"""
865865
from reflex.route import get_router
866866

867-
return get_router(list(self._pages))
867+
return get_router(list(self._unevaluated_pages))
868868

869869
def get_load_events(self, path: str) -> list[IndividualEventType[()]]:
870870
"""Get the load events for a route.

0 commit comments

Comments
 (0)