Skip to content

Keep-alive route

Declared with KeepAlive: navigating away hides it instead of disposing it.

Component state

Clicks this instance has seen: 0

Click a few times, type a note, navigate to Home and come back. This route is KeepAlive: the component stayed mounted (hidden), so everything survives.

Activate / deactivate lifecycle

Seconds this page has been visible: 0
Deactivated (hidden) 0 times, reactivated 0 times.

A kept page stays fully alive while hidden - its timers keep firing unless it pauses them. This page derives from BrouterRouteBase: OnDeactivated stops its ticking timer when the page is hidden, OnActivated resumes it on return (and activation.IsFirstActivation separates the first show from revisits). Navigate away for a while and come back: the seconds counter did NOT advance while you were gone, but the deactivation/reactivation counters did - proving the same instance was signalled on each transition instead of being recreated.