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]
Ordinary field
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