Created
January 12, 2018 05:49
-
-
Save mariorodriguespt/9cf8efad4d43248ce266586749e22d82 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
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