react icon indicating copy to clipboard operation
react copied to clipboard

[react devtools] Device storage support

Open rbalicki2 opened this issue 1 year ago • 0 comments

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 on window. 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

rbalicki2 avatar Sep 09 '22 23:09 rbalicki2