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

Composer rendering container twice #163

Open
derdrdirk opened this issue May 1, 2017 · 2 comments
Open

Composer rendering container twice #163

derdrdirk opened this issue May 1, 2017 · 2 comments

Comments

@derdrdirk
Copy link

derdrdirk commented May 1, 2017

I packed the container into a composer. The composer is subscribing to data, as soon as the subscription is ready the composer gets called again and sends the data via onData(null, props) to the container. When the container is mounted the composer runs again and triggers an update of the component.

What is triggering the reload of the composer? I am not changing any props of the composer?

P.S. I am using Meteor.

@derdrdirk derdrdirk changed the title Composer rendering container twice! Composer rendering container twice May 1, 2017
@crapthings
Copy link

do u have subscribe inside your container ?
if so you should wait for ready

@crapthings
Copy link

subscribe ready is reactive source
it will be switching between false to true
and if your props are from collection cursor it will reactive while ddp sends message

you have to wait subscribe ready most time

because ddp message from publish cursor sends one by one

or use this.added changed removed erc to customize your ddp manually

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