Hey frontend devs. Are signals just a kind of event emitter?

@mauve no I mean “reactive signals”, it’s a trendy new front end pattern

@heapwolf Ha ha, are we going to get another wave of rxjs type hype? Personally I loved that era.

@mauve seems possible. I guess I’m going to have to code read an implementation of signals to find out if it’s just an event emitter, there are 100000 tuts on how to use them, and none of them say specifically how signals work 😅

@heapwolf @mauve I understood them so far to be more like observerables, which yeah do appear in rxjs, but have existed in various forms for many years (I remember writing an implementation back in 2012, based on Dojo Toolkit's implementation)

@thisismissem @mauve what’s the difference between an observable and an event emitter?

@heapwolf @thisismissem I see event emitter as being similar to an EventTarget in that it's a bag of events and the thing is a bit more central. I think observables feel more lightweight like a single variable and is easier for them to be passed around as variables and combined

Follow

@heapwolf @thisismissem I assume this current wave is a reaction to React's useHook API, and a thing that ropes things into one place again (like redux and "stores"

Sign in to participate in the conversation
Mauvestodon

Escape ship from centralized social media run by Mauve.