Created
December 8, 2015 16:13
-
-
Save czbaker/34edc9139610a0c3f24d 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
| 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