Socket
Socket
Sign inDemoInstall

@8base/apollo-provider

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@8base/apollo-provider

This is wrapper under the Apollo Provider with fetching 8base [unions and interfaces.](https://www.apollographql.com/docs/react/recipes/fragment-matching.html) on start application.


Version published
Maintainers
2
Created
Source

8base Apollo Provider

This is wrapper under the Apollo Provider with fetching 8base unions and interfaces. on start application.

ApolloProvider

Table of Contents

ApolloProvider

Extends PureComponent

Provider fetch interfaces fragments schema and create apollo client

Properties
  • children (React$Node | Function) Children of the provider. Could be either react node or function with loading state.
  • uri string Children 8base endpoint
  • getClient Function 8base endpoint

Usage

  import { createApolloClient, createApolloLinks } from '@8base/create-apollo-client';
  import { ApolloProvider } from '@8base/apollo-provider';

  const getClient: Function = createApolloClient({
    links: createApolloLinks({ getAuthState, uri }),
  });

  <ApolloProvider 
    getClient={ getClient }
    uri={ uri }
  >
    { ({ isLoading }) => children }
  </ApolloProvider>

FAQs

Package last updated on 15 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc