3 ms·
I'm using postal.js for pubsub in a webapp where I have components that I'd like to reuse but are sometimes used in varying contexts, such that zero, one, or mo
by muraiki 12y ago
I'm using postal.js for pubsub in a webapp where I have components that I'd like to reuse but are sometimes used in varying contexts, such that zero, one, or more other components will be interested in that component's actions. This way, any given component doesn't need to know how many / which other components are interested in its events -- it can simply publish them.