Questions tagged [flow-router]

Questions for the meteor package FlowRouter

Tag questions for this meteor package: https://github.com/meteorhacks/flow-router#subscription-management

244 questions
0
votes
1 answer

Meteor Flow Router: Route subscriptions vs Template subscriptions

I'm working on a Meteor app with Flow-Router. I'm retrieving an entire user list (multiple users), by creating a publish function that publishes all users. In my route, I'm subscribing to this (Route based subscription) and then I create a template…
wiwa1978
  • 2,317
  • 3
  • 31
  • 67
0
votes
1 answer

Passing a property in React from a parent element to a child element dynamically through FlowRouter/ReactLayout

I've been learning React and how to integrate it with Meteor over the past couple weeks. One issue I've been running into, is when using FlowRouter and ReactLayout, I can't seem to figure out how to pass properties/functions from the parent/layout…
bgmaster
  • 2,313
  • 4
  • 28
  • 41
0
votes
1 answer

With Flow Router how to re-execute a function upon visitng the page?

I have set some functions in the template's onRendered hook like this : Template.PanelLayout.onRendered(function() { Tracker.autorun(function() { if (ready.get()) { page = Pages.findOne({ slug: 'about' …
THpubs
  • 7,804
  • 16
  • 68
  • 143
0
votes
2 answers

In meteor, how to wait for subscriptions and access them in template `rendered` function?

Im using the FlowRouter in my app and new to Meteor. I have subscribed to my collection like this : Template.PanelEditAbout.onCreated(function() { var self = this; self.autorun(function() { self.subscribe('pages', 'about'); …
THpubs
  • 7,804
  • 16
  • 68
  • 143
0
votes
1 answer

Flow Router param not changing inside hook and subscription

I am using Template.taskList.onCreated( () => { var projectId = FlowRouter.getParam( 'projectId' ); var postHooks = { before: { insert: function ( doc ) { doc.projectId = projectId; return doc; } } }; …
Jamgreen
  • 10,329
  • 29
  • 113
  • 224
0
votes
2 answers

In Meteor, how to load some file only for logged in users?

Im trying to create an Admin panel using Meteor. I don't want to load any of the js and html files related to the Admin panel to the normal user. Need to load them only when the user is logged in. How can I achieve this? (Im using the FlowRouter to…
THpubs
  • 7,804
  • 16
  • 68
  • 143
0
votes
1 answer

Check if user exists in every route with Flow Router

I have a user profile in Meteor. I am using Flow Router. I want to check if the user exists on every route. I have tried const userRedirect = ( context, redirect, stop ) => { let userId = FlowRouter.getParam( 'userId' ); if ( Meteor.users.find(…
Jamgreen
  • 10,329
  • 29
  • 113
  • 224
0
votes
0 answers

Why are separate .jsx file not being included when using react in my metor.js app

I have been working on a meteor.js and react.js app using meteor-react and flow-router. I Started with a structure like this: client components register.jsx layouts header.jsx footer.jsx lib router.jsx main.html main.jsx in my…
Finglish
  • 9,692
  • 14
  • 70
  • 114
0
votes
1 answer

Meteor React 2 Level down collection stopped being reactive

I have 1 project with one or more taskTrees. For each taskTree, I have multiple tasks. The problem is whenever I add new task, I don't see the task being added until I refresh the page. I am using Meteor React 1.2.1 with following…
Eric Kim
  • 10,617
  • 4
  • 29
  • 31
0
votes
1 answer

FlowRouter:Kadira Trigger On Page Load

I am having a problem with adding the active class on my navbar when the page load. The triggerEnters works when I click the page, but I also want it when the page loads. Here's my code: var headerRoutes = FlowRouter.group({ triggersEnter:…
Sydney Loteria
  • 10,171
  • 19
  • 59
  • 73
0
votes
0 answers

Flow Router client side publishing for single item

I just made the change to Flow Router and trying to understand it. I'm creating a portfolio. I have a list of portfolio items. You can click a single item and it will take you to the specific page. I have the path helper set up, but the client side…
0
votes
1 answer

How can I make Meteor templates available to targeted audiences via an URL?

I want to build a Blog, of sorts, with Meteor but, rather than just have a Blog such as platypus.meteor.com, I want to create a separate Meteor template for each Blog "post" and then send a link to select people such as…
B. Clay Shannon-B. Crow Raven
  • 8,547
  • 144
  • 472
  • 862
0
votes
1 answer

Meteor template exclusive subscription

I have two different templates in one route. Both return a number of items from a uniform collection however, when I do Template.stepOneSelect.onCreated(function() { var instance = this; instance.autorun(function() { var subsciption =…
416serg
  • 348
  • 2
  • 17
0
votes
1 answer

has iron-router a group function like flow-router

Hey Ladys and Gentlenerds! ;-) is there a way to handle my URLs with a prefix or group or something like that? cooldomain.com/admin cooldomain.com/admin/posts cooldomain.com/admin/comments cooldomain.com/admin/something Flow-Router Groups i don't…
user1980781
0
votes
1 answer

Meteor Server Side Rendering in App

I've recently got involved with Meteor.js. I have started building my app and am trying to decide whether to use Flowrouter, or React.Router. I see that FlowRouter includes Server Side Rendering or SSR. Since I am primarily making a meteor app that…
Dan
  • 1,065
  • 1
  • 11
  • 18
1 2 3
16
17