react
react copied to clipboard
[react devtools] Device storage support
Summary
- This PR adds support for persisting certain settings to device storage, allowing e.g. RN apps to properly patch the console when restarted.
- Pass device storage getters/setters from RN to DevTools'
connectToDevtools
. The setters are then used to populate values onwindow
. Later, the console is patched using these values. - If we receive a notification from DevTools that the console patching fields have been updated, we write values back to local storage.
- See this (outdated) react-native PR.
How did you test this change?
- Manual testing,
yarn run test-build-devtools
,yarn run prettier
,yarn run flow dom