Page MenuHomePhabricator

[dev-menu] Add Wipe Redux button to Expo dev menu
ClosedPublic

Authored by patryk on Jul 5 2023, 1:47 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Dec 15, 4:02 PM
Unknown Object (File)
Sun, Dec 15, 4:02 PM
Unknown Object (File)
Sun, Dec 15, 4:02 PM
Unknown Object (File)
Sun, Dec 15, 4:02 PM
Unknown Object (File)
Sun, Dec 15, 3:59 PM
Unknown Object (File)
Sun, Dec 15, 3:31 PM
Unknown Object (File)
Fri, Nov 29, 11:42 PM
Unknown Object (File)
Fri, Nov 29, 10:10 PM
Subscribers

Details

Summary
Test Plan
  1. Run IOS sim
  2. Open Expo dev menu (cmd + ctrl + z)
  3. Press Wipe Redux button

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

patryk changed 2 blocking reviewer(s), added 1: kamil; removed 1: bartek.Jul 5 2023, 1:59 AM

Thanks for taking care of this! In some scenarios, this is a significant DX improvement.

To give more context: This is a useful feature in cases you break the app so badly that you cannot log in to enter the Profile -> Developer tools menu to kill the app. It happened to me sometimes when I messed up with the keyserver URL settings.
With this diff, you can shake the device (Ctrl+Cmd+Z in iOS simulator) or press the m key in Metro console to access this button.

native/dev-menu.js
27 ↗(On Diff #28396)

To match the button text from the Profile -> Developer tools menu and indicate that this kills the app ;)

patryk changed 2 blocking reviewer(s), added 1: bartek; removed 1: kamil.Jul 5 2023, 2:32 AM
This revision is now accepted and ready to land.Jul 5 2023, 2:53 AM