[Feature request] Trigger custom event with custom payload

Following this topic I thought it would really be great to have an option to trigger custom events with custom payload. This would greatly benefit if you have developed multiple plugins and want to have some interaction between them. Then you could make a plugin listen for that custom event and have access to a payload.

Simple example

  • Plugin 1 does some actions on a layer when some event is triggered
  • Plugin 2 only triggers the generic History state change, but…
  • If Plugin 2 could trigger a custom event with lets say Layer ID as a payload, then Plugin 1 could catch it and do some actions on that layer
2 Likes