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

rendered callback does not fire when using subs manager #57

Open
sferoze opened this issue Oct 5, 2015 · 1 comment
Open

rendered callback does not fire when using subs manager #57

sferoze opened this issue Oct 5, 2015 · 1 comment

Comments

@sferoze
Copy link

sferoze commented Oct 5, 2015

This is a huge issue for me and I am surprised it has not come up before.

When using this package and switching between routes, the rendered callback does not get fired anymore.

If the data is cached and you switch between routes the rendered callback for the template rendered on screen is not fired.

So Meteor is removing the template from the DOM, and when it rendered it again the rendered is not called. I have setup listeners function in the rendered function and they get removed when the template is destroyed. Since the rendered callback is not called they do not get setup again.

@arunoda
Copy link
Contributor

arunoda commented Oct 5, 2015

It's really hard to answer without looking at a sample code.

Could you send us a sample repo with the issue.
On 2015 ඔක් 5, සඳුදා at පෙ.ව. 5.55 Feroze Shahpurwala <
[email protected]> wrote:

This is a huge issue for me and I am surprised it has not come up before.

When using this package and switching between routes, the rendered
callback does not get fired anymore.

If the data is cached and you switch between routes the rendered callback
for the template rendered on screen is not fired.

So Meteor is removing the template from the DOM, and when it rendered it
again the rendered is not called. I have setup listeners function in the
rendered function and they get removed when the template is destroyed.
Since the rendered callback is not called they do not get setup again.


Reply to this email directly or view it on GitHub
#57.

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