From 5eb3db4a288f6a95e2d5638e622b510467f4411e Mon Sep 17 00:00:00 2001 From: Lendemor Date: Tue, 18 Feb 2025 14:14:18 +0100 Subject: [PATCH] expose pages as public api in App() --- reflex/app.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/reflex/app.py b/reflex/app.py index d0ee06ae9..4fe76931a 100644 --- a/reflex/app.py +++ b/reflex/app.py @@ -426,6 +426,15 @@ class App(MiddlewareMixin, LifespanMixin): """ return self._event_namespace + @property + def pages(self) -> Dict[str, Component]: + """Get the compiled pages. + + Returns: + The compiled pages. + """ + return self._pages + def __post_init__(self): """Initialize the app.