hareactive icon indicating copy to clipboard operation
hareactive copied to clipboard

Changes :: behavior -> stream?

Open dmitriz opened this issue 8 years ago • 0 comments

https://github.com/funkia/hareactive#changesab-behaviora-streama

I am a bit confused about this one, e.g. if the behaviour is modelled by the mouse move, how is it translated into the continuous stream?

It is used in the example

https://github.com/funkia/turbine/blob/master/examples/zip-codes/index.ts#L41

in a way that feels a bit like throwing away the available information coming from the typing events from the inputValue, which might be easier to model as (discrete) stream for precisely this reason. As stream it would emit the new value at the right time and you could save a line and a method, it would seem.

I might be missing something of course.

dmitriz avatar May 15 '17 15:05 dmitriz