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

Old documents not deleted when no subscriptions made #21

Open
awwx opened this issue Jul 21, 2013 · 0 comments
Open

Old documents not deleted when no subscriptions made #21

awwx opened this issue Jul 21, 2013 · 0 comments

Comments

@awwx
Copy link
Owner

awwx commented Jul 21, 2013

Here's a fairly odd corner case: when the client makes a subscription, the server sends the documents that are currently in the subscription set, followed by subscription ready. Once the client gets subscription ready, it knows that it has all the documents currently available, which means that any other other documents that it has in the browser database are old documents (which were deleted on the server at some point when the client wasn't connected), and so can now be deleted on the client.

But this process only happens after the client has made a subscription. So if the client doesn't make any subscriptions, old documents in the browser database won't get deleted.

Which I'm not sure if there's anything to do about given the goal of following the Meteor API. But it does look weird when testing.

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

1 participant