Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion reflex/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -1117,7 +1117,6 @@ def _apply_decorated_pages(self):
# Add the @rx.page decorated pages to collect on_load events.
for render, kwargs in DECORATED_PAGES[app_name]:
self.add_page(render, **kwargs)
DECORATED_PAGES[app_name].clear()

def _validate_var_dependencies(self, state: type[BaseState] | None = None) -> None:
"""Validate the dependencies of the vars in the app.
Expand Down
8 changes: 8 additions & 0 deletions reflex/page.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

from reflex.config import get_config
from reflex.event import EventType
from reflex.utils import console

DECORATED_PAGES: dict[str, list] = defaultdict(list)

Expand Down Expand Up @@ -76,6 +77,13 @@ def get_decorated_pages(omit_implicit_routes: bool = True) -> list[dict[str, Any
Returns:
The decorated pages.
"""
console.deprecate(
"get_decorated_pages",
reason="This function is deprecated and will be removed in a future version.",
deprecation_version="0.7.9",
removal_version="0.8.0",
dedupe=True,
)
return sorted(
[
page_data
Expand Down
Loading