Skip to content

SharedComponentPoolComponentAcquireOptions.consumer?

SharedComponentPoolComponentAcquireOptions › consumer?

Type: Component

A component whose unload releases the acquisition automatically.

The link is a child component added to the consumer, so it follows Obsidian's own rules: a consumer that is not loaded yet starts holding the link when it loads, and a ComponentEx consumer that is already unloaded refuses it with a SilentError. Releasing the acquisition by hand removes the link again, so a long-lived consumer that acquires and releases many times accumulates nothing.