Skip to content

SharedComponentPoolComponent.acquire method

SharedComponentPoolComponent › acquire

Acquires the component shared under a key, creating and loading it when the key has no consumer yet.

Signature:

acquire(key: TKey, options?: SharedComponentPoolComponentAcquireOptions): Promise<SharedComponentAcquisition<TComponent>>

Parameters:

ParameterTypeDescription
keyTKeyThe resource key.
options?SharedComponentPoolComponentAcquireOptionsThe acquisition options.

Returns: Promise<SharedComponentAcquisition<TComponent>> — The acquisition, once the shared component has loaded.