Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mariorodriguespt/9cf8efad4d43248ce266586749e22d82 to your computer and use it in GitHub Desktop.
Save mariorodriguespt/9cf8efad4d43248ce266586749e22d82 to your computer and use it in GitHub Desktop.
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