You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs-site/render-modes.html
+123Lines changed: 123 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -426,6 +426,129 @@ <h3>Option 2: Switch to Auto mode</h3>
426
426
</div>
427
427
</section>
428
428
429
+
<!-- Scoped Stores for Blazor Server -->
430
+
<sectionclass="section">
431
+
<h2id="scoped-stores">Scoped Stores for Blazor Server (Now with Redux DevTools! 🎉)</h2>
432
+
433
+
<divclass="alert alert-success">
434
+
<divclass="alert-title">Major Breakthrough!</div>
435
+
<p>Scoped stores in Blazor Server <strong>now support Redux DevTools</strong>! This was previously thought impossible, but we've made it work.</p>
436
+
</div>
437
+
438
+
<h3>The Problem</h3>
439
+
<p>In Blazor Server, singleton stores are shared across all SignalR circuits (all connected users). This means every client sees the same state, which is not ideal for user-specific data.</p>
440
+
441
+
<h3>The Solution</h3>
442
+
<p>Use <strong>scoped stores</strong> for per-circuit (per-user) isolation. Each user gets their own instance of the store.</p>
<li>⚠️ LocalStorage persistence has limitations (sessions don't persist across reconnects)</li>
542
+
<li>⚠️ Singleton stores still can't use DevTools (created before IJSRuntime exists)</li>
543
+
</ul>
544
+
</div>
545
+
546
+
<divclass="alert alert-success">
547
+
<divclass="alert-title">Working Demo</div>
548
+
<p>See the <ahref="https://github.com/mashrulhaque/EasyAppDev.Blazor.Store/tree/main/samples/EasyAppDev.Blazor.Store.ServerSample" target="_blank">Blazor Server Sample</a> for a working demonstration of scoped stores with Redux DevTools!</p>
0 commit comments