add_page(self, component: 'Component | ComponentCallable', route: 'str | None' = None, title: 'str | None' = None, description: 'str | None' = None, image: 'str' = 'favicon.ico', on_load: 'EventHandler | EventSpec | list[EventHandler | EventSpec] | None' = None, meta: 'list[dict[str, str]]' = []) | Add a page to the app.
If the component is a callable, by default the route is the name of the
function. Otherwise, a route must be provided. |
get_load_events(self, route: 'str') -> 'list[EventHandler | EventSpec]' | Get the load events for a route. |
add_custom_404_page(self, component: 'Component | ComponentCallable | None' = None, title: 'str' = '404 - Not Found', image: 'str' = 'favicon.ico', description: 'str' = 'The page was not found', on_load: 'EventHandler | EventSpec | list[EventHandler | EventSpec] | None' = None, meta: 'list[dict[str, str]]' = []) | Define a custom 404 page for any url having no match.
If there is no page defined on 'index' route, add the 404 page to it.
If there is no global catchall defined, add the 404 page with a catchall. |
modify_state(self, token: 'str') -> 'AsyncIterator[BaseState]' | Modify the state out of band. |