Skip to content

Commit 507bc05

Browse files
committed
Merge branch 'main' into release/reflex-0.7.6
2 parents aa4b76b + 0629df3 commit 507bc05

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

pyi_hashes.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,10 @@
114114
"reflex/components/react_player/audio.pyi": "972975ed0ba3e1dc4a867da20b11ae8e",
115115
"reflex/components/react_player/react_player.pyi": "63ffffbc24907103f797dcfd85894107",
116116
"reflex/components/react_player/video.pyi": "35ce5ad62e8bff17d9c09d27c362f8dc",
117-
"reflex/components/recharts/__init__.pyi": "d4013ae04aaa4d81fccffb727d513ed6",
117+
"reflex/components/recharts/__init__.pyi": "a52c9055e37c6ee25ded15688d45e8a5",
118118
"reflex/components/recharts/cartesian.pyi": "34b15e8f5125b5a8145e3e04ed6418e4",
119119
"reflex/components/recharts/charts.pyi": "b3d35de9cea86307ad2ab7d69ff2d06b",
120-
"reflex/components/recharts/general.pyi": "ccc5e13f46429b08cdd14fd507fe3163",
120+
"reflex/components/recharts/general.pyi": "5548fc494c29063c262ca7a7ef51dce8",
121121
"reflex/components/recharts/polar.pyi": "8fb87fd69c9edf55998f11ea8ada76fb",
122122
"reflex/components/recharts/recharts.pyi": "157acc830323075ffaf4f68d495d1787",
123123
"reflex/components/sonner/toast.pyi": "0b6dc33413f30fdd043b89ec3c8c3f39",

reflex/app.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ class UnevaluatedPage:
293293
image: str
294294
on_load: EventType[()] | None
295295
meta: list[dict[str, str]]
296+
context: dict[str, Any] | None
296297

297298

298299
@dataclasses.dataclass()
@@ -681,6 +682,7 @@ def add_page(
681682
image: str = constants.DefaultPage.IMAGE,
682683
on_load: EventType[()] | None = None,
683684
meta: list[dict[str, str]] = constants.DefaultPage.META_LIST,
685+
context: dict[str, Any] | None = None,
684686
):
685687
"""Add a page to the app.
686688
@@ -695,6 +697,7 @@ def add_page(
695697
image: The image to display on the page.
696698
on_load: The event handler(s) that will be called each time the page load.
697699
meta: The metadata of the page.
700+
context: Values passed to page for custom page-specific logic.
698701
699702
Raises:
700703
PageValueError: When the component is not set for a non-404 page.
@@ -762,6 +765,7 @@ def add_page(
762765
image=image,
763766
on_load=on_load,
764767
meta=meta,
768+
context=context,
765769
)
766770

767771
def _compile_page(self, route: str, save_page: bool = True):

reflex/components/recharts/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
"ResponsiveContainer",
6565
"legend",
6666
"Legend",
67+
"tooltip",
6768
"graphing_tooltip",
6869
"GraphingTooltip",
6970
"label",

reflex/components/recharts/general.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ class Cell(Recharts):
259259

260260
responsive_container = ResponsiveContainer.create
261261
legend = Legend.create
262-
graphing_tooltip = GraphingTooltip.create
262+
graphing_tooltip = tooltip = GraphingTooltip.create
263263
label = Label.create
264264
label_list = LabelList.create
265265
cell = Cell.create

reflex/utils/export.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ def export(
4141

4242
# Override the config url values if provided.
4343
if api_url is not None:
44-
config.api_url = str(api_url)
44+
config._set_persistent(api_url=str(api_url))
4545
console.debug(f"overriding API URL: {config.api_url}")
4646
if deploy_url is not None:
47-
config.deploy_url = str(deploy_url)
47+
config._set_persistent(deploy_url=str(deploy_url))
4848
console.debug(f"overriding deploy URL: {config.deploy_url}")
4949

5050
# Show system info

0 commit comments

Comments
 (0)