Skip to content

Instantly share code, notes, and snippets.

@czbaker
Created December 8, 2015 16:13
Show Gist options
  • Select an option

  • Save czbaker/34edc9139610a0c3f24d to your computer and use it in GitHub Desktop.

Select an option

Save czbaker/34edc9139610a0c3f24d to your computer and use it in GitHub Desktop.
ProxyDisplay = React.createClass({
mixins: [ReactMeteorData],
getMeteorData() {
let data = {};
let names = _.pluck(this.props.proxyState, 'name');
let handle = Meteor.subscribe('cardsFromList', names);
if (handle.ready()) {
data.cards = Cards.find({}).fetch();
}
return data
},
renderCards() {
if (this.props.proxyState) {
console.log(this.props.proxyState);
}
},
render() {
return (
<div>
<h2>Proxies Show Here</h2>
{this.renderCards()}
</div>
);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment