next-with-apollo-hoc
Yet another next apollo hoc built on top of [next-with-apollo](https://github.com/lfades/next-with-apollo)
Last updated 3 months ago by pawsong .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install next-with-apollo-hoc 
SYNC missed versions from official npm registry.

next-with-apollo-hoc

Yet another next apollo hoc built on top of next-with-apollo

Example

// pages/_app.js

import React from 'react'
import App from 'next/app'
import withApollo from 'next-with-apollo-hoc'
import { StylesProvider } from '@material-ui/core/styles'

const graphqlURI = process.env.GRAPHQL_URI || 'http://localhost:5000/graphql'

export default withApollo({
  uri: graphqlURI,
  treeForData: tree => (
    <StylesProvider disableGeneration>
      {tree}
    </StylesProvider>
  ),
})(App)

License

MIT

Current Tags

  • 1.1.4                                ...           latest (3 months ago)

9 Versions

  • 1.1.4                                ...           3 months ago
  • 1.1.3                                ...           3 months ago
  • 1.1.1                                ...           4 months ago
  • 1.1.0                                ...           4 months ago
  • 1.0.1                                ...           5 months ago
  • 1.0.0                                ...           6 months ago
  • 0.1.2                                ...           6 months ago
  • 0.1.1                                ...           6 months ago
  • 0.1.0                                ...           6 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |