Created
January 12, 2018 05:49
-
-
Save mariorodriguespt/e873d94ba59c688bf6071f468b9800c2 to your computer and use it in GitHub Desktop.
This file contains 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
const containerFunction = { | |
getMeteorData: ( props , context ) => { | |
console.log( 'context' , context ); | |
...secret code... | |
return { | |
isReady , | |
timelineEvents | |
}; | |
} | |
}; | |
containerFunction.contextTypes = { | |
currentDomain: PropTypes.string | |
}; | |
export default NewsFeedTimelineContainer = withTracker( containerFunction )( NewsFeedTimeline ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment