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)
Thu, Sep 26, 11:10 AM
Unknown Object (File)
Sun, Sep 8, 12:23 PM
Unknown Object (File)
Sun, Sep 8, 12:23 PM
Unknown Object (File)
Sun, Sep 8, 12:23 PM
Unknown Object (File)
Sun, Sep 8, 12:22 PM
Unknown Object (File)
Sun, Sep 8, 12:20 PM
Unknown Object (File)
Sat, Sep 7, 5:28 PM
Unknown Object (File)
Sat, Sep 7, 11:55 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.