Went through and made changes throughout lib to support MinimallyEncodedThreadInfo where changes required were limited to updating signature.
Next diffs will involve changes that need to be made to message-specs and Redux.
Depends on D9889
Differential D9890
[lib] Update misc parts of `lib` to support `MinimallyEncodedThreadInfo` atul on Nov 14 2023, 5:43 PM. Authored by Tags None Referenced Files
Subscribers None
Details Went through and made changes throughout lib to support MinimallyEncodedThreadInfo where changes required were limited to updating signature. Next diffs will involve changes that need to be made to message-specs and Redux. Depends on D9889 Trusting Flow
Diff Detail
Event TimelineComment Actions Are there some places where we're expecting only ThreadInfo and not MinimallyEncodedThreadInfo (or the other way around)? Is it possible to modify ThreadInfo type to be what it already is or MinimallyEncodedThreadInfo (type ThreadInfo = { ... } | MinimallyEncodedThreadInfo)? That might be a more maintainable and much simpler approach. Comment Actions Yeah I think that makes sense, was thinking along those lines yesterday: You're right that having to type RawThreadInfo | MinimallyEncodedRawThreadInfo everywhere would be super tedious. Basically I think the best bet is:
Doing this refactor incrementally is helpful because we can make progress while keeping flow happy vs. having a bunch of flow issues that we need to handle all at once |