Skip to content

Instantly share code, notes, and snippets.

View gallagher-stem's full-sized avatar

Michael Gallagher gallagher-stem

  • Stem Disintermedia
  • Los Angeles, CA
View GitHub Profile
import React from 'react';
import Relay from 'react-relay';
const pageSize = 2;
class Content extends React.Component {
componentWillMount() {
this.hasNextPage = this.props.user.next ? this.props.user.next.pageInfo.hasNextPage : false;
this.hasPreviousPage = this.props.user.prev ? this.props.user.prev.pageInfo.hasPreviousPage : false;