Skip to main content

foundation-layout.unregisterfactory

Home > @genesislcap/foundation-layout > unregisterFactory

unregisterFactory() function​

Removes a factory from the registry. This is useful for cleanup when a component is unmounted or no longer needed.

Signature:

export declare function unregisterFactory(key: string): boolean;

Parameters​

Parameter

Type

Description

key

string

The unique identifier for the factory to remove.

Returns:

boolean

True if the factory was found and removed, false otherwise.

Example​

unregisterFactory('my-component');