Skip to content

Commit 69391d8

Browse files
committed
updated documentation
1 parent 5e50c5d commit 69391d8

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

forge-wire.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1238,9 +1238,16 @@ <h3 class="text-lg font-semibold mb-3">Performance Considerations</h3>
12381238
<li><strong>Targeted Updates:</strong> fw:target can reduce HTML payload</li>
12391239
<li><strong>Input Strategies:</strong> fw:model.lazy and fw:model.debounce for different use cases</li>
12401240
<li><strong>Polling Impact:</strong> Intersection observer helps with visibility-based polling</li>
1241-
<li><strong>Shared State:</strong> fw:depends helps avoid unnecessary re-renders</li>
1241+
<li><strong>Shared State Efficiency:</strong> All dependent islands update in <strong>single request</strong> - no multiple HTTP requests needed</li>
1242+
<li><strong>No Event Dispatching:</strong> Shared state changes don't need manual event dispatching - ForgeWire handles coordination automatically</li>
12421243
<li><strong>Session Size:</strong> Large state objects affect session storage</li>
12431244
</ul>
1245+
1246+
<div class="bg-green-50 border border-green-200 rounded-lg p-4 mb-4">
1247+
<p class="text-sm text-green-800">
1248+
<strong>Performance Win:</strong> Shared state updates are highly efficient - one server call updates all dependent islands simultaneously.
1249+
</p>
1250+
</div>
12441251
</section>
12451252
</div>
12461253
</div>

0 commit comments

Comments
 (0)