react-native-debugger
react-native-debugger copied to clipboard
[Relay] Consider adding the new relay-devtools extension?
Thanks for a great tool!
Recently mentions of relay-devtools have appeared in the Relay Modern docs. While the repos are not public yet, the Chrome extension can already be installed.
I was hoping that you may consider including that already or, if not, if you could point me at where I need to update code to include this extension myself?
Thanks for the info! Due to the old relay plugin in react-devtools may doesn't support Relay Modern, I think we should support the new devtools.
We need to waiting for the Electron app public, and hoping it like react-devtools that exported the app core package, or just fork it. Here is code for include react-devtools.
Also, these are the implementation in RN:
-
global.registerDevtoolsPlugin
insetupDevtools.js
of react-native -
Register relay-devtools plugin in
relay-runtime
Currently the registerDevtoolsPlugin
server port will conflict if __REACT_DEVTOOLS_PORT__
are set (we used it for multiple debugger support), need to temporarily change it. I might report an issue to react-native.
Oh yeah, that sounds a lot more involved than I had hoped for right now. Thanks for taking it into consideration, though, let me know if I can/should test something out for you at some point!
The standalone app of Relay DevTools is published here but source code not public yet, and the problem have been fixed in https://github.com/facebook/react-native/commit/bd70f3ab3b2807ce3648548d3e70577d09c4e3c2.
The source code for the devtools is now available at https://github.com/relayjs/relay-devtools
@jhen0409 what is necessary to include it into react-native-debugger? I probably can get a PR going for that.
i'm going to put a pr together - i've been working on the standalone version on my own branch but it'd be great to just integrate it here.
is #298 a reasonable template to follow for adding a new tool?
Any news on this? Having this available would be awesome.
Any updates?
Any updates? The official relay-devtools is not working as expected on React Native.