Skip to content

Commit 1d25333

Browse files
committed
Add docs/apollo-client-devtools-integration.md
1 parent 1cff81b commit 1d25333

14 files changed

+57
-21
lines changed

README.md

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
99
This is a standalone app for debugging React Native apps:
1010

11-
* Based on official [Remote Debugger](https://facebook.github.io/react-native/docs/debugging.html#chrome-developer-tools) and provide more functionally.
12-
* Includes [React Inspector](docs/react-devtools-integration.md) from [`react-devtools-core`](https://github.com/facebook/react-devtools/tree/master/packages/react-devtools-core).
13-
* Includes Redux DevTools, made [the same API](docs/redux-devtools-integration.md) with [`redux-devtools-extension`](https://github.com/zalmoxisus/redux-devtools-extension).
11+
- Based on official [Remote Debugger](https://facebook.github.io/react-native/docs/debugging.html#chrome-developer-tools) and provide more functionally.
12+
- Includes [React Inspector](docs/react-devtools-integration.md) from [`react-devtools-core`](https://github.com/facebook/react-devtools/tree/master/packages/react-devtools-core).
13+
- Includes Redux DevTools, made [the same API](docs/redux-devtools-integration.md) with [`redux-devtools-extension`](https://github.com/zalmoxisus/redux-devtools-extension).
1414

1515
## Installation
1616

@@ -26,21 +26,22 @@ This puts `React Native Debugger.app` in your `/applications/` folder.
2626

2727
## Documentation
2828

29-
* [Getting Started](docs/getting-started.md)
30-
* [Debugger Integration](docs/debugger-integration.md)
31-
* [React DevTools Integration](docs/react-devtools-integration.md)
32-
* [Redux DevTools Integration](docs/redux-devtools-integration.md)
33-
* [Shortcut references](docs/shortcut-references.md)
34-
* [Network inspect of Chrome Developer Tools](docs/network-inspect-of-chrome-devtools.md)
35-
* [Enable open in editor in console](docs/enable-open-in-editor-in-console.md)
36-
* [Config file in home directory](docs/config-file-in-home-directory.md)
37-
* [Troubleshooting](docs/troubleshooting.md)
38-
* [Contributing](docs/contributing.md)
29+
- [Getting Started](docs/getting-started.md)
30+
- [Debugger Integration](docs/debugger-integration.md)
31+
- [React DevTools Integration](docs/react-devtools-integration.md)
32+
- [Redux DevTools Integration](docs/redux-devtools-integration.md)
33+
- [Apollo Client DevTools Integration](docs/apollo-client-devtools-integration.md)
34+
- [Shortcut references](docs/shortcut-references.md)
35+
- [Network inspect of Chrome Developer Tools](docs/network-inspect-of-chrome-devtools.md)
36+
- [Enable open in editor in console](docs/enable-open-in-editor-in-console.md)
37+
- [Config file in home directory](docs/config-file-in-home-directory.md)
38+
- [Troubleshooting](docs/troubleshooting.md)
39+
- [Contributing](docs/contributing.md)
3940

4041
## Credits
4142

42-
* Great work of [React DevTools](https://github.com/facebook/react-devtools)
43-
* Great work of [Redux DevTools](https://github.com/gaearon/redux-devtools) / [Remote Redux DevTools](https://github.com/zalmoxisus/remote-redux-devtools) and all third-party monitors.
43+
- Great work of [React DevTools](https://github.com/facebook/react-devtools)
44+
- Great work of [Redux DevTools](https://github.com/gaearon/redux-devtools) / [Remote Redux DevTools](https://github.com/zalmoxisus/remote-redux-devtools) and all third-party monitors.
4445

4546
## Backers
4647

app/middlewares/debuggerAPI.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,13 @@ const workerOnMessage = message => {
4141
window.__APOLLO_DEVTOOLS_SHOULD_DISPLAY_PANEL__ = true;
4242
}
4343

44-
postMessage({
45-
source: APOLLO_BACKEND,
46-
payload: data,
47-
}, '*');
44+
postMessage(
45+
{
46+
source: APOLLO_BACKEND,
47+
payload: data,
48+
},
49+
'*'
50+
);
4851
}
4952

5053
if (data && (data.__IS_REDUX_NATIVE_MESSAGE__ || data.__REPORT_REACT_DEVTOOLS_PORT__)) {

docs/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
- [Debugger Integration](debugger-integration.md)
55
- [React DevTools Integration](react-devtools-integration.md)
66
- [Redux DevTools Integration](redux-devtools-integration.md)
7+
- [Apollo Client DevTools Integration](apollo-client-devtools-integration.md)
78
- [Shortcuts references](shortcut-references.md)
89
- [Network inspect of Chrome Developer Tools](network-inspect-of-chrome-devtools.md)
910
- [Enable open in editor in console](enable-open-in-editor-in-console.md)
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Apollo Client DevTools Integration
2+
3+
We have integrated for the [Apollo Client DevTools](https://github.com/apollographql/apollo-client-devtools) Chrome Extension, you can see the `Apollo` tab in Chrome Developer Tools:
4+
5+
<img width="547" alt="screen shot 2019-02-01 at 1 51 27 pm" src="https://user-images.githubusercontent.com/3001525/52105143-8006fe00-2628-11e9-8276-09bdeb23e3b2.png">
6+
7+
For ensure it works, you must use Apollo Client ^2.0. (See [the documentation](https://github.com/apollographql/apollo-client-devtools#apollo-client-devtools))
8+
9+
## Other documentations
10+
11+
- [Getting Started](getting-started.md)
12+
- [Debugger Integration](debugger-integration.md)
13+
- [React DevTools Integration](react-devtools-integration.md)
14+
- [Redux DevTools Integration](redux-devtools-integration.md)
15+
- [Shortcut references](shortcut-references.md)
16+
- [Network inspect of Chrome Developer Tools](network-inspect-of-chrome-devtools.md)
17+
- [Enable open in editor in console](enable-open-in-editor-in-console.md)
18+
- [Config file in home directory](config-file-in-home-directory.md)
19+
- [Troubleshooting](troubleshooting.md)
20+
- [Contributing](contributing.md)

docs/config-file-in-home-directory.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ We could configure RNDebugger app in `~/.rndebuggerrc`, the file used [json5](ht
5050
- [Debugger Integration](debugger-integration.md)
5151
- [React DevTools Integration](react-devtools-integration.md)
5252
- [Redux DevTools Integration](redux-devtools-integration.md)
53+
- [Apollo Client DevTools Integration](apollo-client-devtools-integration.md)
5354
- [Shortcut references](shortcut-references.md)
5455
- [Network inspect of Chrome Developer Tools](network-inspect-of-chrome-devtools.md)
5556
- [Enable open in editor in console](enable-open-in-editor-in-console.md)

docs/contributing.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ Thank you to all our sponsors! (please ask your company to also support this ope
8282
- [Debugger Integration](debugger-integration.md)
8383
- [React DevTools Integration](react-devtools-integration.md)
8484
- [Redux DevTools Integration](redux-devtools-integration.md)
85+
- [Apollo Client DevTools Integration](apollo-client-devtools-integration.md)
8586
- [Shortcut references](shortcut-references.md)
8687
- [Network inspect of Chrome Developer Tools](network-inspect-of-chrome-devtools.md)
8788
- [Enable open in editor in console](enable-open-in-editor-in-console.md)

docs/debugger-integration.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ if (__DEV__) {
4747
- [Getting Started](getting-started.md)
4848
- [React DevTools Integration](react-devtools-integration.md)
4949
- [Redux DevTools Integration](redux-devtools-integration.md)
50+
- [Apollo Client DevTools Integration](apollo-client-devtools-integration.md)
5051
- [Shortcut references](shortcut-references.md)
5152
- [Network inspect of Chrome Developer Tools](network-inspect-of-chrome-devtools.md)
5253
- [Enable open in editor in console](enable-open-in-editor-in-console.md)

docs/enable-open-in-editor-in-console.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Instead of open file in `Sources` tab, you can open file in editor by click sour
1616
- [Debugger Integration](debugger-integration.md)
1717
- [React DevTools Integration](react-devtools-integration.md)
1818
- [Redux DevTools Integration](redux-devtools-integration.md)
19+
- [Apollo Client DevTools Integration](apollo-client-devtools-integration.md)
1920
- [Shortcut references](shortcut-references.md)
2021
- [Network inspect of Chrome Developer Tools](network-inspect-of-chrome-devtools.md)
2122
- [Config file in home directory](config-file-in-home-directory.md)

docs/getting-started.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Getting Started
22

33
Just these steps will let you start RNDebugger out of box:
4+
45
- Install the latest version ([download page](https://github.com/jhen0409/react-native-debugger/releases)).
56
- Make sure all debugger clients of React Native are closed, usually are `http://localhost:<port>/debugger-ui`
67
- Make sure RNDebugger is open and wait state.
@@ -55,8 +56,8 @@ Using the same API as [`redux-devtools-extension`](https://github.com/zalmoxisus
5556
```js
5657
const store = createStore(
5758
reducer /* preloadedState, */,
58-
window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()
59-
);
59+
window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__(),
60+
)
6061
```
6162

6263
See [`Redux DevTools Integration`](redux-devtools-integration.md) section for more information.
@@ -85,6 +86,7 @@ You can also click `React Native Debugger` (`RND` for Linux / Windows) -> `Check
8586
- [Debugger Integration](debugger-integration.md)
8687
- [React DevTools Integration](react-devtools-integration.md)
8788
- [Redux DevTools Integration](redux-devtools-integration.md)
89+
- [Apollo Client DevTools Integration](apollo-client-devtools-integration.md)
8890
- [Shortcut references](shortcut-references.md)
8991
- [Network inspect of Chrome Developer Tools](network-inspect-of-chrome-devtools.md)
9092
- [Enable open in editor in console](enable-open-in-editor-in-console.md)

docs/network-inspect-of-chrome-devtools.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ If you want to inspect deeper network requests (like requests made with `Image`)
5858
- [Debugger Integration](debugger-integration.md)
5959
- [React DevTools Integration](react-devtools-integration.md)
6060
- [Redux DevTools Integration](redux-devtools-integration.md)
61+
- [Apollo Client DevTools Integration](apollo-client-devtools-integration.md)
6162
- [Shortcut references](shortcut-references.md)
6263
- [Enable open in editor in console](enable-open-in-editor-in-console.md)
6364
- [Config file in home directory](config-file-in-home-directory.md)

0 commit comments

Comments
 (0)