Skip to content

Instantly share code, notes, and snippets.

View jurajkrivda's full-sized avatar
💭
Hi there

Juraj Krivda jurajkrivda

💭
Hi there
  • Prague
View GitHub Profile
@good-idea
good-idea / Query.js
Created August 30, 2018 22:25
Improved ApolloQuery to use `delayQuery` and provide `loadQuery`
// @flow
import * as React from 'react'
import type { DocumentNode } from 'graphql'
import type { QueryRenderProps } from 'react-apollo'
import { Query as ApolloQuery } from 'react-apollo'
type QueryProps = {
query: DocumentNode,
children: (QueryRenderProps<any, any>) => React.Node,
variables?: {},