Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

autoDestroy()

Sets a flag to tell the rendering service whether or not to destroy this component when it is removed from its rendering facet.

Signature

autoDestroy(Boolean destroy)

Parameters

destroy
Type: Boolean
Default is true, which marks the component to be destroyed when it’s orphaned. Set to false to keep a reference to a component after it has been unrendered or removed from a parent facet. We don't recommend setting the value to false. If you do, be careful to avoid memory leaks.