PublishPluginApiParams.component?
PublishPluginApiParams › component?
Type: Component
The component whose unload revokes the record. Defaults to PublishPluginApiParams.plugin, which is the right owner for an API published for as long as the plugin runs.Pass a narrower one when the API is only valid for part of the plugin's life — a plugin whose feature surface is torn down and rebuilt while the plugin itself stays loaded must revoke with the surface, or it leaves consumers holding handles into code that is no longer there.