HI
I readed this guide: https://guide.meteor.com/react.html
const App = (props) => ( <div> <section id="menu"><..></section> {props.main} </div> );
export default AppContainer = createContainer(props => { // props here will have `main`, passed from the router // anything we return from this function will be *added* to it return { user: Meteor.user(), }; }, App);
import React from 'react'; import { FlowRouter } from 'meteor/kadira:flow-router'; import { mount } from 'react-mounter';
import AppContainer from '../../ui/containers/AppContainer.js'; import ListPageContainer from '../../ui/containers/ListPageContainer.js';
FlowRouter.route('/lists/:_id', { name: 'Lists.show', action() { mount(AppContainer, { main: <ListPageContainer/>, }); }, });
The question is. HOW i can obtain the “user” variable in my ListPageContainer. I tried several times with no result. I want to obtain an update of the Meteor.user.
Thanks