|
21 | 21 | <span class="logo-text">EasyAppDev.Blazor.Store</span> |
22 | 22 | </a> |
23 | 23 | <div class="header-actions"> |
24 | | - <span class="version-badge">v1.0.0</span> |
| 24 | + <span class="version-badge">v1.0.8</span> |
25 | 25 | <a href="https://github.com/mashrulhaque/EasyAppDev.Blazor.Store" target="_blank" rel="noopener noreferrer" class="github-link"> |
26 | 26 | GitHub |
27 | 27 | </a> |
|
56 | 56 |
|
57 | 57 | <!-- Async Helpers --> |
58 | 58 | <div class="nav-section"> |
59 | | - <div class="nav-section-title">Async Helpers <span class="nav-badge">v1.0.0</span></div> |
| 59 | + <div class="nav-section-title">Async Helpers <span class="nav-badge">v1.0.8</span></div> |
60 | 60 | <ul class="nav-list"> |
61 | 61 | <li><a href="./async-helpers/index.html" class="nav-link"><span class="nav-icon">⚡</span><span>Overview</span></a></li> |
62 | 62 | <li><a href="./async-helpers/update-debounced.html" class="nav-link"><span class="nav-icon">⏱️</span><span>UpdateDebounced</span></a></li> |
@@ -151,7 +151,7 @@ <h3>Batch Updates When Possible</h3> |
151 | 151 | <p>Chain multiple state transformations into a single update to minimize re-renders.</p> |
152 | 152 | <div class="code-block"> |
153 | 153 | <div class="code-block-title">✅ Correct</div> |
154 | | - <pre><code class="language-csharp">await Update(s => s.SetLoading(true).ClearErrors().ResetForm());</code></pre> |
| 154 | + <pre><code class="language-csharp">await UpdateAsync(s => s.SetLoading(true).ClearErrors().ResetForm());</code></pre> |
155 | 155 | </div> |
156 | 156 | </div> |
157 | 157 | </div> |
@@ -209,7 +209,7 @@ <h3>Don't Add Side Effects to State Methods</h3> |
209 | 209 | async Task AddItem(Item item) |
210 | 210 | { |
211 | 211 | Logger.LogInformation("Adding item"); |
212 | | - await Update(s => s.AddItem(item)); |
| 212 | + await UpdateAsync(s => s.AddItem(item)); |
213 | 213 | } |
214 | 214 | }</code></pre> |
215 | 215 | </div> |
@@ -264,7 +264,7 @@ <h2>🔧 Troubleshooting</h2> |
264 | 264 | await UpdateAsync(async s => await s.LoadDataAsync()); |
265 | 265 |
|
266 | 266 | // ❌ Wrong |
267 | | -await Update(async s => await s.LoadDataAsync());</code></pre> |
| 267 | +await UpdateAsync(async s => await s.LoadDataAsync());</code></pre> |
268 | 268 | </div> |
269 | 269 | </div> |
270 | 270 |
|
|
0 commit comments