1.0.7 • Published 4 years ago

rempl-apollo-devtools v1.0.7

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

Rempl Apollo Client Devtools

Features

Rempl Apollo Devtools allows you to debug multiple apollo clients and it allows you to inspect key events. This tool contains the following features:

  • Cache inspector - Allow seeing the content of the cache and allows you to remove a specific object from the cache.
  • Watched Query inspector - Observe active queries.
  • Mutation inspector - Visualise mutations, which were fired.

Installation

  1. First off, you need to include the bundled library's script into your site.
yarn install @microsoft/rempl-apollo-devtools

include dist/apollo-devtools.js in Webpack

webpackConfig.entry["apollodevtools"] = PROJECT_ROOT("node_modules/rempl-apollo-devtools/dist/apollo-devtools.js");

OR

build the library and include <script> with dist/apollo-devtools.jsin your HTML page. <script src="path/apollo-devtools.js"></script>

  1. In your project, you need to attach the apollo client(s) instance into the global variable APOLLO_CLIENTS
const client = new ApolloClient({
  uri: 'https://48p1r2roz4.sse.codesandbox.io',
  cache: new InMemoryCache()
});

window.__APOLLO_CLIENTS__ = [client]

Usage

Mac

To open devtools press cmd+option+shift+0

Windows

To open devtools press ctrl+alt+shift+0

1.0.2

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.1-b

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0-b

4 years ago

1.0.0

4 years ago