Skip to content

Commit e9b3373

Browse files
authored
make on load use event type over event handler (#95)
1 parent fd736a9 commit e9b3373

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ci_template/cijob/templates/template.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def template(
5555
description: str | None = None,
5656
meta: str | None = None,
5757
script_tags: list[rx.Component] | None = None,
58-
on_load: rx.EventHandler | list[rx.EventHandler] | None = None,
58+
on_load: rx.event.EventType[()] | None = None,
5959
) -> Callable[[Callable[[], rx.Component]], rx.Component]:
6060
"""The template for each page of the app.
6161

dashboard/dashboard/templates/template.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def template(
5555
description: str | None = None,
5656
meta: str | None = None,
5757
script_tags: list[rx.Component] | None = None,
58-
on_load: rx.EventHandler | list[rx.EventHandler] | None = None,
58+
on_load: rx.event.EventType[()] | None = None,
5959
) -> Callable[[Callable[[], rx.Component]], rx.Component]:
6060
"""The template for each page of the app.
6161

0 commit comments

Comments
 (0)