We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
How should one use fast render when the route has parameters? I have this code in the lib folder:
lib
FlowRouter.route('/articles/:articleId', { action: function() { // The template 'article' runs the following subscription: // this.subscribe('singleArticle',articleId) BlazeLayout.render('website', {content: 'article'}); } }); if (Meteor.isServer) { FastRender.route('/articles/:articleId', function(params) { console.log('params: ',params) this.subscribe('singleArticle', params.articleId) }) }
However the FastRender.route code does not run again when you go to a route with a different article_id. I tried using:
FastRender.route
Tracker.autorun( () => { FlowRouter.watchPathChange() console.log('params: ',params) this.subscribe('singleArticle', params.articleId) })
But watchPathChange is not defined on the server...
watchPathChange
The text was updated successfully, but these errors were encountered:
No branches or pull requests
How should one use fast render when the route has parameters? I have this code in the
lib
folder:However the
FastRender.route
code does not run again when you go to a route with a different article_id. I tried using:But
watchPathChange
is not defined on the server...The text was updated successfully, but these errors were encountered: