Decorator that subscribes to the currently logged in user from the ApplicationRepository.
This decorator automatically updates the decorated property whenever the current user
changes in the platform. It's the recommended approach over manual subscriptions as it
handles subscription lifecycle automatically.
Returns
A PropertyDecorator that sets up automatic subscription to the current user
Decorator that subscribes to the currently logged in user from the ApplicationRepository.
This decorator automatically updates the decorated property whenever the current user changes in the platform. It's the recommended approach over manual subscriptions as it handles subscription lifecycle automatically.
Returns
A PropertyDecorator that sets up automatic subscription to the current user
Remarks
Subscribes to: ApplicationRepository
Updates: The decorated property with the User object
Lifecycle: Automatically subscribes in
connectedCallbackand unsubscribes indisconnectedCallbackof the component.Example
Example
Example