-
Notifications
You must be signed in to change notification settings - Fork 14
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
Question: subscribe with unblock and then later do a blocking subscription #4
Comments
Your code will work. On Sun, Apr 5, 2015 at 9:55 PM funkyeah [email protected] wrote:
|
Definitely, and that I why this unblocking should be done on large subscriptions if not critical for rendering while it should not be used for when the data is absolutely necessary. Do you know what would happen with the code below? and/or is this a correct assesment of it?
|
Sorry to pester but any idea what would happen in this scenario and/or if it would be safe? |
I am wondering what would happen if you pass whether to unblock or not in a subscribe and then later re-subscribe with block.
An example of the pattern I want to support is subscribing to data used to populate a dropdown menu. When I render the page I know I need to get that data eventually but because the data is used in an a drop-down it is lower-priority to get . So originally this.unblock is good. But then lets say a user clicks the drop-down and the data hasn't loaded yet. At that point I would like to re-subscribe without unblocking since that data is now time critical.
Is this something that should work as shown below? Is there any merit to the idea of extending unblock into a priority/yielding scheme, where lower priority publishes yield to higher priority ones?
The text was updated successfully, but these errors were encountered: