A decoupled approach to relaying events between Stimulus controllers | justin․searls․co
23-Aug-2024 388
Each major version of Stimulus has improved this story, adding features like Outlets and a convenience method for dispatching namespaced events. At this point, Stimulus's built-in API covers the majority of ways you'd need to trigger controller behavior indirectly, but they sometimes introduce pressure to unnecessarily couple controllers that wouldn't otherwise need to know anything about each other.
A decoupled approach to relaying events between Stimulus controllers | justin․searls․co #ruby #rubydeveloper #rubyonrails #decoupled #approach #relaying #events #between #Stimulus #controllers #justin․searls․co #stimulus https://rubyonrails.ba/link/a-decoupled-approach-to-relaying-events-between-stimulus-controllers-justin-searls-co