HomePhabricator
Diffusion Comm cd0f749ff2df

[lib] Remove errorHandler from createRealThreadFromPendingThread

Description

[lib] Remove errorHandler from createRealThreadFromPendingThread

Summary: In D718 we introduced thread creation hook which had a handleError parameter. When it was present, all exceptions would be caught and undefined was returned instead. This caused the returned promise to be optional and that was reflected in pendingThreadCreations map in input state containers. In D1140 and D1139 we removed all the handleError usages and now we can use Promise<string> instead which simplifies the code.

Test Plan: Flow, tested with other diffs

Reviewers: ashoat

Reviewed By: ashoat

Subscribers: KatPo, Adrian, atul

Differential Revision: https://phabricator.ashoat.com/D1141

Details

Provenance
tomekAuthored on May 11 2021, 4:06 AM
Reviewer
ashoat
Differential Revision
Restricted Differential Revision
Parents
rCOMMfca5b21b9a1e: [lib] Delete useRealThreadCreator hook
Branches
Unknown
Tags
Unknown