Page MenuHomePhabricator

[native] Don't crash if TagInput is unmounted before error received
ClosedPublic

Authored by ashoat on May 3 2023, 1:29 PM.
Tags
None
Referenced Files
F3398836: D7708.id26067.diff
Mon, Dec 2, 12:42 AM
Unknown Object (File)
Fri, Nov 8, 1:31 AM
Unknown Object (File)
Fri, Nov 8, 1:30 AM
Unknown Object (File)
Thu, Nov 7, 11:33 PM
Unknown Object (File)
Oct 28 2024, 10:23 AM
Unknown Object (File)
Oct 28 2024, 10:23 AM
Unknown Object (File)
Oct 28 2024, 10:23 AM
Unknown Object (File)
Oct 28 2024, 10:21 AM
Subscribers
None

Details

Summary

I saw a bug where if I added a user, then left the screen before the server response came in, BUT the server response was an error, I would get a crash with "tagInput should be set".

The issue is that we have an invariant that assumes the TagInput is mounted when the error comes in. But if the user leaves the screen before the error, then the TagInput might be unmounted before the error.

Test Plan

Confirm there are no remaining instances of tagInput should be set in the codebase

Diff Detail

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