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
Unknown Object (File)
Mon, Oct 28, 10:23 AM
Unknown Object (File)
Mon, Oct 28, 10:23 AM
Unknown Object (File)
Mon, Oct 28, 10:23 AM
Unknown Object (File)
Mon, Oct 28, 10:21 AM
Unknown Object (File)
Wed, Oct 23, 8:20 PM
Unknown Object (File)
Thu, Oct 10, 11:59 AM
Unknown Object (File)
Oct 2 2024, 2:41 PM
Unknown Object (File)
Sep 26 2024, 7:04 PM
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
Lint
Lint Not Applicable
Unit
Tests Not Applicable