Page MenuHomePhabricator

[native] [fix] [ENG-1199] fix crashing app
ClosedPublic

Authored by benschac on May 27 2022, 7:37 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 19, 6:12 PM
Unknown Object (File)
Fri, Apr 19, 6:12 PM
Unknown Object (File)
Fri, Apr 19, 6:12 PM
Unknown Object (File)
Fri, Apr 19, 6:12 PM
Unknown Object (File)
Fri, Apr 19, 6:12 PM
Unknown Object (File)
Fri, Apr 19, 6:05 PM
Unknown Object (File)
Wed, Apr 17, 11:24 AM
Unknown Object (File)
Fri, Apr 12, 8:37 PM

Details

Summary

The application is currently in a broken state. If you open the see more sidebar modal then close the app, open the app the app will stay in a loading state indefinitely. Adding @ashoat since this is a pretty urgent issue that needs to be fixed ASAP.

Test Plan

try the above locally to confirm app is broken. Patch this diff and try the same steps again, the app should load as expected. Additionally, try search sidebars functionality to make sure it's still working as expected.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ashoat published this revision for review.May 27 2022, 7:44 AM
ashoat accepted this revision.
This revision is now accepted and ready to land.May 27 2022, 7:44 AM

I still need to look into this more. I'm not 100% why this code was ever needed in the first place. I do understand why it's causing and how it's causing a bug, just why this code is in the codebase in the first place.

I've tested this change both on native and web. Search sidebar functionality works as expected.

I think the idea is that if the searchIndex changes (eg. if one of the potential search results changes), then we should recalculate the results