index.js 867 Bytes
// import { EnterModule } from '/imports/client/views/enter/module/index'
import {
         composeWithTracker,
         compose,
         composeAll
       }                                  from 'react-komposer';
import { EnterLayout }                    from './EnterLayout';
import { Loading }                        from '/imports/client/components/Loading';


const meteorTick = (props, onData) => {

  const handles = [
  ];

  if(_.every(handles, (handle) => (handle.ready()) )) {
    onData(null, {
      location: props.location,
      data: {
      },
    });
  }

  return () => {
    _.each(handles, (handle) => handle.stop() );
  };
};


const reduxTick = (props, onData) => {
  onData(null, {
    data: {}
  });
};


export const EnterModule = composeAll(
  composeWithTracker(meteorTick, Loading),
  compose(reduxTick, Loading),
)(EnterLayout);