appsmithorg / appsmith

Platform to build admin panels, internal tools, and dashboards. Integrates with 25+ databases and any API.
https://www.appsmith.com
Apache License 2.0
34.02k stars 3.67k forks source link

[Feature]: JS Eventbus #23924

Open augedo opened 1 year ago

augedo commented 1 year ago

Is there an existing issue for this?

Summary

An event bus that enables components in appsmith apps to

  1. subscribe to custom events by registering a callback JavaScript function when subscribed events occur.
  2. publish custom events

This enables developers to decouple the logic of components. This is especially important, when a specific event is relevant for multiple components.

Why should this be worked on?

I think the usual benefits of pub/sub communications are clear. I really just want to open an issue for this for visibility reasons and for other users to also put their weight on in case it is important for them.

Also, the feature is super generic and I think it can enable very nice development patterns in appsmith apps.

Nikhil-Nandagopal commented 1 year ago

@augedo thanks for the feature request. It's indeed a very interesting pattern to be able to subscribe to multiple events from a common place.