-
FEATURED COMPONENTS
First time here? Check out the FAQ!
![]() | 1 | initial version | |
Auto-Unsubscribed only works when using SelectoComposer
instead of a ViewModel.
Please see Auto-Unsubscribed.
Since you call SelectorsExt.subscribeEventQueues(this);
in a ViewModel, your @Subscribe
still works and can receive events.
If you check ServerPushEventQueue.subscribe()
, it add a listener EQCleanup
that will remove the subscriber's listener when a desktop is destroyed:
_dtInfos.put(desktop, di = new DesktopInfo(desktop, new EQService(), new EQCleanup()));
So, you don't need to call postSubscriptionHandling()
.
![]() | 2 | No.2 Revision |
Auto-Unsubscribed only works when using SelectoComposer
by default instead of a ViewModel.
Please see Auto-Unsubscribed.
Since you call SelectorsExt.subscribeEventQueues(this);
in a ViewModel, your @Subscribe
still works and can receive events.events from an event queue.
If you check ServerPushEventQueue.subscribe()
, it add a listener EQCleanup
that will remove the subscriber's listener when a desktop is destroyed:
_dtInfos.put(desktop, di = new DesktopInfo(desktop, new EQService(), new EQCleanup()));
So, you don't need to call postSubscriptionHandling()
.