a2ui-project / a2ui-project/a2ui

Swift: Finalize progressive rendering behavior of child lists

オープン
#2,089 コメント 0 件 リアクション 0 件 担当者 1 名 @pinieb が担当を希望しています GitHub で見る
other renderers P2 type: feature/enhancement
主要言語
TypeScript
スター
16.4k
フォーク
1.3k
平均マージ
3日 15時間
マージ済み PR(30日)
134

説明

> It's not uncommon for 1) an `updateComponents` message to describe a component that reference other components as its children and 2) the client hasn't heard a thing about those children yet (that often arrives in a follow-up `UpdateComponents` message that comes right after the first).
>
> In this scenario, wouldn't the lookup return `nil` and every caller just drops its job of rendering this subtree because `resolveChildList` skips nil children.
>
> In this scenario, our prior art implements progressive rendering, putting placeholders in place of children that have yet to arrive. I don't remember off the top of my head how much better this tends to look compared to the more classical approach of just having components pop in as they arrive, so your mileage may vary.
>
>
>
>

_Originally posted by @andrewkolos in [#2052](https://github.com/a2ui-project/a2ui/pull/2052/changes/BASE..a2a3eb346038b0723b2289a3d03b0c2799e58654#r3639480312)_

Once the Basic Catalog and Sample App are up and running, finalize the behavior of declared but missing (or incomplete) render nodes. Perhaps with a placeholder view or perhaps pop-in.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

この Issue は、Swift における子リストのプログレッシブレンダリングの動作に関するものです。まず `resolveChildList` 関数と、nil の子要素をどのように処理しているかを調べてください。現在のレンダリングフローを理解するために、Basic Catalog と Sample App を確認してください。欠落しているレンダーノードに対してプレースホルダーまたは pop-in を実装するかどうかを判断し、視覚的な結果をテストしてください。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
swift, typescript
領域
frontend
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。