eclipsesource / tabris-js

Create native mobile apps in JavaScript or TypeScript.
https://tabrisjs.com
BSD 3-Clause "New" or "Revised" License
1.4k stars 170 forks source link

Support Observables and RxJS #2100

Open tbuschto opened 4 years ago

ishigo1987 commented 4 years ago

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?

tbuschto commented 4 years ago

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.

ishigo1987 commented 4 years ago

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

tbuschto commented 3 years ago

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.