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:
| Parameter | Type | Description |
|---|---|---|
| key | TKey | The resource key. |
| options? | SharedComponentPoolComponentAcquireOptions | The acquisition options. |
Returns: Promise<SharedComponentAcquisition<TComponent>> — The acquisition, once the shared component has loaded.