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 "removed" called on startup #332

Open
dnish opened this issue Feb 5, 2019 · 1 comment
Open

DDP "removed" called on startup #332

dnish opened this issue Feb 5, 2019 · 1 comment

Comments

@dnish
Copy link

dnish commented Feb 5, 2019

I'm trying to implement a persistent store within our application. Currently I'm having a little issue when I subscribe to our main publication. I get 100 DDP "added" messages and also 100 DDP "removed" messages, both showing the same documents. Both occur exactly on the same time. Is this the normal behavior or am I doing something wrong?

@jnurkka
Copy link

jnurkka commented Feb 25, 2019

I had a similar issue and after long debugging figured out that it was caused by the user being authenticated (my publication returned an empty array if the user was not authenticated). A simple solution was to have the publication throw an error instead of returning something if the user was not authenticated

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

No branches or pull requests

2 participants