Skip to content

Commit

Permalink
[lib] Update useResolvedThreadInfosObj return type
Browse files Browse the repository at this point in the history
Summary: One of the changes from https://gist.github.com/Ashoat/efa03bb380aa602abe2499770b9ddfbd. Separating into separate diff because the other change caused some cascading `flow` issues in `native`... which I'll address in separate diff.

Test Plan: flow

Reviewers: ashoat

Reviewed By: ashoat

Subscribers: tomek

Differential Revision: https://phab.comm.dev/D9935
  • Loading branch information
atulsmadhugiri committed Nov 20, 2023
1 parent 320f2a6 commit 43d6a1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/entity-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function useResolvedOptionalThreadInfos(
function useResolvedThreadInfosObj(
threadInfosObj: { +[id: string]: ThreadInfo },
options?: ?UseENSNamesOptions,
): { +[id: string]: ResolvedThreadInfo } {
): { +[id: string]: ResolvedThreadInfo | MinimallyEncodedResolvedThreadInfo } {
const threadInfosArray = React.useMemo(
() => values(threadInfosObj),
[threadInfosObj],
Expand Down

0 comments on commit 43d6a1a

Please sign in to comment.