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
F3178288: D7708.id26067.diff
Fri, Nov 8, 1:31 AM
F3178284: D7708.id26046.diff
Fri, Nov 8, 1:30 AM
F3177498: D7708.diff
Thu, Nov 7, 11:33 PM
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
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