I am using FlowRouter in Meteor.
On some pages, I want to check if the user is logged in, so I have made a triggerEnter function
const isAuthenticatedRedirect = ( context, redirect, stop ) => {
if ( ! Meteor.loggingIn() && ! Meteor.userId() ) {
…
I have created the routes and the patFor to be able to reach mysite.com/post/id but instead of opening it in a new page I want this to be opened inside a modal and can't find how to do it with meteor and flow-router
The current way I link to the…
How do I pass the props from FlowRouter to my react component. Is that possible? The documentation is that great.
Im doing something like this:
FlowRouter.route('/dashboard', {
name: 'dashboard',
action(){
var x = Projects.find().fetch(); //…
Can anyone help me? I already spent 3 days on it.
how can I redirect client https://example.com to https://www.example.com (also ROOT_URL) in meteor?
I tried with Route 53 & S3 for redirecting but these worked when https is not enabled.
Building a collaborative app in Meteor. I am having issues with adding a user to a session. When i call my method "addUserToSession" and pass the relevant IDs, i get this error.
Exception while simulating the effect of invoking 'addUserToSession'…
I am using Meteor with FlowRouter and I am getting a strange behavior. I am wondering if I am just fundamentally not understanding something. I have the following code in client/route.js:
"use strict";
FlowRouter.route('/', {
name: 'home',
…
I am attempting to render a template via FlowRouter and BlazeLayout.render() to a dynamic template. That dynamic template exists inside a Bootstrap container div. When the content is rendered, however, it is appended to the bottom of the DOM in a…
Issue:
I cannot get the followers of a user using Flow-Router + React, subscribing inside React Component
I use Meteor, Flow-Router, React. I'm tring to subscribe followers,
but it always returns empty when I run the app. I'm not sure what is…
Friends,
I'm working on my first app in Meteor and hitting my head against the wall on something...
I have a scenario similar to a blog + comments situation where I have one collection (call it 'posts') and want to associate documents from another…
I am using Meteor, FlowRouter, and Parsley for validation. When I reload the app and enter into the page with the form, I get this error and parsley is not working on the form:
You must bind Parsley on an existing element.
If I leave the page and…
i reuse the same template in other route with different data argument but using the same publication...
if i do normal pub/sub, the data being published as expected. but when i do conditional pub/sub like below, i fail to subscribe the data. console…
I want to build a scenario where if a user wants to access a secure page and they are not logged in they get redirected to a login page like so.
FlowRouter.route('/add',{
name: 'add',
triggersEnter: [function(context, redirect) {
…
I'm new to Meteor and trying to get holder.js to work in the framework. It works on refresh, but when moving from one route to another, it breaks.
The documentation just says "Because Meteor includes scripts at the top of the document by default,…
My home route works when it's by itself:
FlowRouter.route('/', {
name: 'home',
triggersEnter: [
function(context, redirect) {
var ExperimentsSub, handle, randomExperiment;
console.log('Home triggers');
ExperimentsSub = new…