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

Horizon no longer queues queries run before horizon.onReady has triggered #631

Closed
alf opened this issue Jul 6, 2016 · 9 comments
Closed

Comments

@alf
Copy link

alf commented Jul 6, 2016

According to the documentation, you don't need to use horizon.onReady before running a query. This worked fine until this commit. After that it seems the queries are silently dropped.

@alf
Copy link
Author

alf commented Jul 6, 2016

I'm currently working around this by wrapping my code in hz.onReady. However for this to work I have to manually trigger hz.connect() otherwise my query gets dropped.

@deontologician
Copy link
Contributor

This is weird, I am hoping it'll be fixed by #619

@deontologician
Copy link
Contributor

@alf, can you see if this works for you on the #619 branch?

@alf
Copy link
Author

alf commented Jul 14, 2016

Tried out the #619 branch and it seems to break everything for me. That is I'm no longer able to fetch data and I'm no longer able to store data.

Just to be sure I tested the correct commit: 16b1c31

I installed it by running the test/setupDev.sh script then running npm link @horizon/client and server in my repo before packing and testing my code. Maybe I've missed a step?

@deontologician
Copy link
Contributor

Ok, you're correct. It is inexplicably not working on that branch. I had it working locally and with CircleCi, so let me figure out what went wrong. Sorry about that

@deontologician
Copy link
Contributor

Alright @alf it turns out the bug was upstream. I needed to use a fixed version of WebSocketSubject, which I opened a PR for here: ReactiveX/rxjs#1831

If you're feeling adventurous you might try building with that, otherwise we can wait and see if/when they merge it upstream

@deontologician
Copy link
Contributor

Ok, this fix has been merged into next. The rxjs guys haven't had a chance to look at my patch, so I just hacked it into our implementation for the time being. @alf Any chance you could check this out again? (thanks for your patience)

@deontologician
Copy link
Contributor

This seems fixed

@alf
Copy link
Author

alf commented Jul 20, 2016

I'll look at it when I'm back from vacation. I'm sure it's fine however. :)

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