tabris-js icon indicating copy to clipboard operation
tabris-js copied to clipboard

Support Observables and RxJS

Open tbuschto opened this issue 5 years ago • 4 comments

tbuschto avatar Aug 21 '20 11:08 tbuschto

can you explain this please? because right now i use observables from rxjs with no problem. Do you want to natively add it to tabris.js?

ishigo1987 avatar Aug 21 '20 15:08 ishigo1987

It's just about convinience.

I want tabris objects to provide events as observables, like widget.onFooChanged.subscribe(...) and support RxJS operators like widget.onFooChanged.pipe(...).

I also would like to allow setting ovservables and promises directly on properties, roughly like this: FooWidget({prop: {async: promiseOrObservables}})

If you have other ideas I'd like to hear them.

tbuschto avatar Aug 25 '20 10:08 tbuschto

for now i think that your ideas is enough, if i've any other idea i will let you know.

ishigo1987 avatar Aug 25 '20 13:08 ishigo1987

In 3.7 an Observable implementation is provided and used by the event system. The issue will not be closed yet since we also want to be able to consume observables.

tbuschto avatar Nov 27 '20 10:11 tbuschto