Page MenuHomePhabricator

[native] Separate redux-devtools out
ClosedPublic

Authored by ashoat on Dec 21 2022, 11:29 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 4, 10:32 AM
Unknown Object (File)
Mon, Nov 4, 10:32 AM
Unknown Object (File)
Mon, Nov 4, 10:31 AM
Unknown Object (File)
Mon, Nov 4, 10:30 AM
Unknown Object (File)
Mon, Nov 4, 10:15 AM
Unknown Object (File)
Mon, Nov 4, 1:15 AM
Unknown Object (File)
Mon, Nov 4, 1:15 AM
Unknown Object (File)
Mon, Nov 4, 1:15 AM
Subscribers

Details

Summary

After this diff, redux-devtools runs similar to react-devtools: as a separate standalone yarn command.

Other changes:

  1. Updated our version of @redux-devtools/cli
  2. Silenced console errors when redux-devtools isn't open
  3. Added the --open flag so the user doesn't have to separately open the redux-devtools app on their own
  4. Updated docs
Test Plan
  1. Ran Redux dev tools in a variety of scenarios, including having a separate physical device connect to it
  2. Ran the app without Redux dev tools to make sure it doesn't crash or spew too many errors

Diff Detail

Repository
rCOMM Comm
Branch
ashoat/physicaldevice
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

This comment was removed by ashoat.
Harbormaster returned this revision to the author for changes because remote builds failed.Dec 21 2022, 11:32 AM
Harbormaster failed remote builds in B14641: Diff 19969!

Not a fan of @jon's Herald rule auto-added him as blocking... I think we should stick to adding as a reviewer, but not a blocking reviewer... prefer to rely on diff author for selecting their blocking reviewers

Dedup redux packages

  • Fixed a strange issue where two copies of redux-persist with the same version were being installed by Yarn: one in node_modules and the other in native/node_modules
  • patch-package was only capturing the root one, which meant that I was getting Flow errors from the copy of redux-persist in native/node_modules
  • The reason it was has happening was this rule: "we must not hoist a package higher than its peer dependencies"
  • This diff introduced something that caused redux versions to get separated between node_modules and native/node_modules, and the "must not hoist" rule meant that redux-persist had to be copied into native/node_modules
  • Got the tip from this GitHub comment
This revision is now accepted and ready to land.Dec 22 2022, 1:13 AM
This revision was automatically updated to reflect the committed changes.