a2ui-project / a2ui-project/a2ui
Swift: Finalize progressive rendering behavior of child lists
- Lenguaje dominante
- TypeScript
- Estrellas
- 16.4k
- Forks
- 1.3k
- Merge medio
- 3 d 15 h
- PR fusionados (30 d)
- 134
Descripción
> 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.
Guía de contribución
Línea de trabajo
El issue hace referencia al comportamiento de renderizado progresivo de las listas hijas en Swift. Empieza examinando la función `resolveChildList` y cómo gestiona los hijos nil. Consulta Basic Catalog y Sample App para comprender el flujo de renderizado actual. Determina si se deben implementar placeholders o pop-in para los nodos de renderizado que faltan, y prueba el resultado visual.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- swift, typescript
- Área
- frontend
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Tranquilo
- Claridad
- Bastante claro
- Aptitud para principiantes
- 45/100