Does state survive a tab switch?

Click both buttons a few times and type a note below. Then switch to a different browser tab (or minimize the window) for 15–20 seconds, and come back to this tab.

Marked [PersistentState]

Instance created at 14:38:26.159

Clicks: 0

Ordinary field

Instance created at 14:38:26.159

Clicks: 0

What you should see: after switching tabs and coming back, the left card keeps its click count, notes, and "instance created" timestamp. The right card's timestamp changes and its click count resets to zero — Blazor really did spin up a brand-new component instance; only the [PersistentState] fields were rehydrated into it.

SVN Revision: 5

Go to Counter Persist

Go to AccessDb Persist