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 klarstrup/84df3873b5e02fc760037cbb917b41e1 to your computer and use it in GitHub Desktop.
Save klarstrup/84df3873b5e02fc760037cbb917b41e1 to your computer and use it in GitHub Desktop.
const albums = new ReactiveVar([]);
export default createContainer(() =>{
HTTP.get('https://graph.facebook.com/' + this.props.clubId + "/albums?fields=id,name" + token, function(err, resp) {
albums.set(resp.data.data.map(c => <a key={c.id} href={'../gallery/' + c.id}>{c.name}</a>))
});
return {albums : albums.get()};
}, App);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment