Configuration for state transformation and filtering via StateOptions
A PropertyDecorator that sets up automatic subscription to application name
Subscribes to: ApplicationRepository
Updates: The decorated property with the application name (string)
Lifecycle: Automatically subscribes in connectedCallback and
unsubscribes in disconnectedCallback of the component.
// Transform the application name
@State()
@SelectApplicationName({
map: [(name) => name?.toUpperCase()]
})
private appNameUppercase: string;
Decorator that subscribes to the application name from the ApplicationRepository.
This decorator automatically updates the decorated property whenever the application name changes in the platform. It's the recommended approach over manual subscriptions as it handles subscription lifecycle automatically.