Skip to content

SharedComponentPoolComponentConstructorParams.createComponent

SharedComponentPoolComponentConstructorParams › createComponent

Type: (key: TKey) => TComponent

Creates the component shared under a key. Called once per key each time the key goes from no consumer to one; the pool loads the component itself, so the factory must return it unloaded.