Fallbacks, nested arrays and fragments
Related: fine-grained rendering, lists and keys, For, Index, insert, mapArray.
- A
For/Indexwithfallbackshows it while the list is empty and replaces it with the rows when items arrive. - Arrays given to
insertare flattened, nested arrays included, with an explicit stack (no recursion), so nesting depth is not limited by the call stack. An array that contains itself throwsTypeError: insert(): a value contains itself. - A function anywhere inside an array is an accessor: it is called inside the same render effect, so its reads are tracked.
- A
DocumentFragmentcontributes a snapshot of its child nodes; the fragment itself ends up empty. null,undefinedand booleans render nothing. Numbers becomeText.
Related: fine-grained rendering, lists and keys, For, Index, insert, mapArray.