Last active
October 7, 2022 23:07
-
-
Save sibelius/de355f708e7078b2dcd03e537944296c to your computer and use it in GitHub Desktop.
Debug Relay Store on Chrome DevTools
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const env = new Environment({ | |
network, | |
store, | |
handlerProvider: RelayDefaultHandlerProvider, | |
log: isDev ? relayTransactionLogger : null, | |
}); | |
if (isDev) { | |
window.relayEnvironment = env; | |
window.debugRelayStore = () => | |
env | |
.getStore() | |
.getSource() | |
.toJSON(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For other people
you only need this part
And open your chrome console logger and execute