createPool
import { createPool } from "@roku-sdk/flex-grid";createPool<T>(getTemplateConfig: (type: string) => TemplateConfig<T>, options: CreatePoolOptions): CardPool<T>Description
createPool — description pending.
Parameters
| Name | Type | Description |
|---|---|---|
getTemplateConfig | (type: string) => TemplateConfig<T> | |
options | CreatePoolOptions |
Return values
Returns CardPool<T>.
Types
TemplateConfig
Cell component factory and initial dimensions used to populate a shared card pool.
| Name | Type | Description |
|---|---|---|
cellHeight | number | |
cellWidth | number | |
getCellComponent | (templateId: string) => Component<CellRenderProps<T>> |
CreatePoolOptions
Optional wiring for createPool.
| Name | Type | Description |
|---|---|---|
debugViewport? | () => boolean | When provided and returns true, each pooled node overlays its pixel translation. |
gridKey? | object | Initial per-grid instance key (optional — use setGridKey for late binding). |
idPrefix? | string | Prefix for pooled node SceneGraph ids; defaults to gePool_${n} per pool instance. |
perf? | PerfPlugin | Perf plugin notified of pool hits, misses and warmup completion. |
Updated about 3 hours ago
What’s Next
Did this page help you?