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

ddp-client: fix usage of reload #10286

Merged
merged 1 commit into from Oct 23, 2018
Merged

Conversation

nathan-muir
Copy link
Contributor

  • Fix return type of onMigrate callback, as it should be an array.
  • Remove exception on retry, as onMigrate callback can be invoked repeatedly until all components are ready to migrate.
  • Force ddp negotiation failures to cause an uninterruptible reload.

I've been using these changes in a fork for some time. As, I have a lib that prevents reload until a page change occurs.

very difficult to write unit tests for these, but let me know if it's super necessary and I'll give it a shot.

 - return type of onMigrate callback should be an array.
 - onMigrate callback can be invoked many times until all components
    are ready to migrate.
 - ddp negotiation failures should always migrate immediately
@benjamn benjamn added this to the Package Patches milestone Oct 23, 2018
@benjamn benjamn merged commit 8f86f19 into meteor:devel Oct 23, 2018
@benjamn
Copy link
Contributor

benjamn commented Oct 23, 2018

Thanks @nathan-muir!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants