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…
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…
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'
…
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');
…
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…
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(…
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…
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…
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:…
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…
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…
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 =…
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…
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…