Screen
Observe and control navigation within the app.
Pitfall
Users having multiple tabs open can lead to unexpected behavior.
This happens because navigation events are received from all connected clients.
Listen to navigation
Navigate
Reload the screen
Get the current screen
Calling this will trigger onNavigate
This is useful if you want to know the current screen without having to wait for the user to navigate.
Last updated