You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a router system set up with page.on_route_change. However, when the page is just loaded, it doesn't trigger the route change event. For example, if I have the on_route_change function set up so that it would add a view when the route is /login, and the user straight up goes to localhost:8080/login (where the flet application is hosted at), the view won't be added. I want it so that when the page is just initialized, it would also go through the router logic.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Question
I have a router system set up with
page.on_route_change
. However, when the page is just loaded, it doesn't trigger the route change event. For example, if I have theon_route_change
function set up so that it would add a view when the route is/login
, and the user straight up goes tolocalhost:8080/login
(where the flet application is hosted at), the view won't be added. I want it so that when the page is just initialized, it would also go through the router logic.Code sample
No response
Error message
No response
------------------------------------------------------
Beta Was this translation helpful? Give feedback.
All reactions