Ability to send page-wide events

By João Gonçalves on 10 Feb

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".


This idea has no comments yet. Be the first to comment!