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 7/22/2026 10:50:56 PM

Clicks: 0

Last Click:

Ordinary field

Instance created at 7/22/2026 10:50:56 PM

Clicks: 0

Last Click:

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: 13

Go to Redis

Go to Counter Persist

Go to AccessDb Persist