Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

combineLatest #13

Closed
dmitri-lobach opened this issue May 15, 2016 · 10 comments
Closed

combineLatest #13

dmitri-lobach opened this issue May 15, 2016 · 10 comments

Comments

@dmitri-lobach
Copy link

I noticed that there is no wrapping method for combineLatest

Is this intentional and do you plan to keep it this way?

@niwinz
Copy link
Member

niwinz commented May 16, 2016

No, it is not intentional. Is just becase I have never needed it. PR welcome for adding it ;)

@dmitri-lobach
Copy link
Author

I use it all the time. RxJS is pretty much useless for me without it :)

OK, I will add it soon

@niwinz
Copy link
Member

niwinz commented May 16, 2016

Take care that withLatestFrom is already implemented (observable member function instead of static function combineLatest) and works in the same way ;)

@dmitri-lobach
Copy link
Author

Nope, there is a difference (at least in RxJS 4.0 which I use routinely) :)

If you use .combineLatest(a,b), both a and b could trigger combined signal [a,b]

When using a.withLatestFrom(b), only new a could trigger combined signal [a,b], b is "passive"

@niwinz
Copy link
Member

niwinz commented May 16, 2016

You are right! ;)

@dmitri-lobach
Copy link
Author

OK, count me as officially stupid but I can't figure out how to run tests for your library.
I've added these to project.clj

:cljsbuild {
:test-commands
{"user" ["node" "out/tests.js"]}
:builds [
{:main 'beicon.tests.runner
:output-to "out/tests.js"
:output-dir "out"
:target :nodejs
:optimizations :none
:pretty-print true
:language-in :ecmascript5
:language-out :ecmascript5
:verbose true}]}

And receive
Testing beicon.tests.core-tests
Error: #object[TypeError TypeError: unknown type returned]
Error: #object[TypeError TypeError: unknown type returned]

What am I doing wrong?

@niwinz
Copy link
Member

niwinz commented May 22, 2016

You can build and run tests in the same way as travis does: https://github.com/funcool/beicon/blob/master/.travis.yml#L4

@dmitri-lobach
Copy link
Author

I tried and it kinda started but It looks like I stumbled in a windows-specific problem :)))
For some weird reason \b in "out\bluebird.js" is treated like a backspace and I somehow end up with path "...beicon\ouluebird.js" caused by cljs.core.load_file("out\bluebird.js") at promesa/core.js

Do they have a facepalm emoji here? :)

@niwinz
Copy link
Member

niwinz commented May 22, 2016

LOL

@niwinz
Copy link
Member

niwinz commented Nov 26, 2016

Already implemented in master ;)

@niwinz niwinz closed this as completed Nov 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants