Advanced / Interop & Async

flatten

Resolves nested accessors and arrays in a children tree to their rendered values. See the children() helper in solid-js for the memoized form.


Import

import { flatten } from "solid-js";

Type signature

function flatten(
children: any,
options?: { skipNonRendered?: boolean; doNotUnwrap?: boolean }
): any;

Parameters

children

  • Type: any

options

  • Type: { skipNonRendered?: boolean; doNotUnwrap?: boolean }
  • Optional

Learn more

Last updated: 10/15/26, 9:29 AMEdit this pageReport an issue with this page