Skip to content

Commit 821ea65

Browse files
authored
Cross-link cascading values/params topic (#27455)
1 parent a64ac65 commit 821ea65

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

aspnetcore/blazor/state-management.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,11 @@ Generally, `sessionStorage` is safer to use. `sessionStorage` avoids the risk th
446446
> [!WARNING]
447447
> Users may view or tamper with the data stored in `localStorage` and `sessionStorage`.
448448
449+
When implementing custom browser state storage, a useful approach is to adopt [cascading values and parameters](xref:blazor/components/cascading-values-and-parameters):
450+
451+
* To consume state across many components.
452+
* If there's just one top-level state object to persist.
453+
449454
<h2 id="in-memory-state-container-service-wasm">In-memory state container service</h2>
450455

451456
[!INCLUDE[](~/blazor/includes/state-container.md)]
@@ -886,6 +891,11 @@ Generally, `sessionStorage` is safer to use. `sessionStorage` avoids the risk th
886891
> [!WARNING]
887892
> Users may view or tamper with the data stored in `localStorage` and `sessionStorage`.
888893
894+
When implementing custom browser state storage, a useful approach is to adopt [cascading values and parameters](xref:blazor/components/cascading-values-and-parameters):
895+
896+
* To consume state across many components.
897+
* If there's just one top-level state object to persist.
898+
889899
<h2 id="in-memory-state-container-service-wasm">In-memory state container service</h2>
890900

891901
[!INCLUDE[](~/blazor/includes/state-container.md)]
@@ -1341,6 +1351,11 @@ Generally, `sessionStorage` is safer to use. `sessionStorage` avoids the risk th
13411351
> [!WARNING]
13421352
> Users may view or tamper with the data stored in `localStorage` and `sessionStorage`.
13431353
1354+
When implementing custom browser state storage, a useful approach is to adopt [cascading values and parameters](xref:blazor/components/cascading-values-and-parameters):
1355+
1356+
* To consume state across many components.
1357+
* If there's just one top-level state object to persist.
1358+
13441359
<h2 id="in-memory-state-container-service-wasm">In-memory state container service</h2>
13451360

13461361
[!INCLUDE[](~/blazor/includes/state-container.md)]

0 commit comments

Comments
 (0)