Last active
September 24, 2016 18:03
-
-
Save iamkevingreen/1ad750f24bd97c2362b0fc59f7b2288a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { composeWithTracker } from 'react-komposer' | |
import HomeComponent from '../components/Pages/Home' | |
import Loading from '../components/Loading' | |
import { Meteor } from 'meteor/meteor' | |
const composer = (params, onData) => { | |
if (Meteor.subscribe('pages').ready()) { | |
const page = Pages.findOne({ slug: 'home-page' }) | |
onData(null, { page }) | |
} | |
} | |
export default composeWithTracker(composer, Loading)(HomeComponent) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment