Page MenuHomePhabricator

[native] Forward `searchInputRef` from `ChatThreadList` to `ChatThreadListSearch`

Authored by atul on Thu, Sep 14, 2:05 PM.



Forward ref from ChatThreadList to ChatThreadListSearch... which will in turn forward it to the inner Search component.

Depends on D9208

Test Plan

Search experience continues to look and work as expected. Set logs in all expected callbacks to ensure that they fired as expected. Made sure that x-icon and "Cancel" button continue to look and behave as before.

Diff Detail

rCOMM Comm
Lint Not Applicable
Tests Not Applicable

Event Timeline

atul published this revision for review.Thu, Sep 14, 2:06 PM
tomek added inline comments.
81 ↗(On Diff #31155)

Why this ref was defined here and used only as a prop?

356 ↗(On Diff #31155)

Are we sure that we're rendering at most one instance of this component? I'm wondering if using the same ref for two instances can cause some issues.

This revision is now accepted and ready to land.Mon, Sep 18, 4:13 AM
81 ↗(On Diff #31155)

This was temporary to appease flow, etc. What we really want to do (and do in this diff) is forward ref from ChatThreadList down to the inner Search component.

356 ↗(On Diff #31155)

I believe it should be fine. This matches how things were previously.