-
Notifications
You must be signed in to change notification settings - Fork 62
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
Template didn't rerender when 2 routes render the same template #72
Comments
This issue is a duplicate of #65. Would be great to see this resolved. :) |
+1 |
+1 For those who want a hack to work around this issue, I added this IIFE to the onCreated method for the affected template:
This worked for me since I am not using ReactiveVar/ReactiveDict. |
Another way to do it, use the
|
This is what I did to get around the issue. I reset BlazeLayout with a global trigger that fires for every route and clean out the DOM. Put this on top of your
|
I have 2 route
/
and/sell
linked to the same Template, but when I switch from one to the other, the template isn't reloaded (so ReactiveVar aren't updated).This is my router:
And the basic template onCreated function:
So whem I call
/
and I try to switch multiple times, I got:And When I start with
/sell
(hard refresh) I got:How can I avoid that ? Or at least bind a function on this update event ?
The text was updated successfully, but these errors were encountered: