Decorator that subscribes to the application session from the ApplicationRepository.
This decorator automatically updates the decorated property whenever the session
changes in the platform. The session contains authentication and authorization
information. It's the recommended approach over manual subscriptions as it handles
subscription lifecycle automatically.
Returns
A PropertyDecorator that sets up automatic subscription to the session
Decorator that subscribes to the application session from the ApplicationRepository.
This decorator automatically updates the decorated property whenever the session changes in the platform. The session contains authentication and authorization information. It's the recommended approach over manual subscriptions as it handles subscription lifecycle automatically.
Returns
A PropertyDecorator that sets up automatic subscription to the session
Remarks
Subscribes to: ApplicationRepository
Updates: The decorated property with the Session object
Lifecycle: Automatically subscribes in
connectedCallbackand unsubscribes indisconnectedCallbackof the component.Example
Example
Example