0
 Followers
5
 Likes

Ability to send page-wide events

Frontend
On our radar

Currently platform events can only be dispatched when associated with a block, this makes it harder to integrate with cordova plugins, for example, where in order to expose plugin events we need to use a block to register listeners for those events and in turn dispatch system events by executing a client action on the block that dispatchs the events defined on the block.

This has the following problems:

  • High complexity 
  • Developer needs to be very cautious to not leak references to event listeners when navigating from screen to screen because blocks are screen bound


The idea would be to give the ability to send custom events that aren't necessarily bound to a block much like Systems events "On Application Ready" and "On Application Resume".


Created on 10 Feb 2017
Comments (0)
views
169
Followers
0