Skip to content

createWindowPoolDefinition

const createWindowPoolDefinition: (shape, config?, options?) => WindowPoolDefinition = createWindowPool

Defined in: renderer/PooledWindow.tsx:89

Create a pool definition. The shape props (transparent, frame, etc.) are fixed for all windows in this pool — consumers cannot override them per-use.

Call this once at module level and reuse across renders.

PoolShape

Immutable creation-only props shared by all pool windows

WindowPoolConfig

Pool sizing and eviction config

Additional options

InjectStylesMode

How to inject styles into pool windows.

  • “auto”: Copy
  • false: No injection (for CSS-in-JS frameworks)
  • function: Custom injection

WindowPoolDefinition