Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32371365
D9696.1765326156.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
809 B
Referenced Files
None
Subscribers
None
D9696.1765326156.diff
View Options
diff --git a/lib/components/ens-cache-provider.react.js b/lib/components/ens-cache-provider.react.js
--- a/lib/components/ens-cache-provider.react.js
+++ b/lib/components/ens-cache-provider.react.js
@@ -9,6 +9,8 @@
type GetENSNames,
} from '../utils/ens-helpers.js';
+type BaseUserInfo = { +username?: ?string, ... };
+
type ENSCacheContextType = {
+ensCache: ?ENSCache,
+getENSNames: ?GetENSNames,
@@ -31,7 +33,9 @@
return defaultContext;
}
const ensCache = new ENSCache(provider);
- const getENSNames: GetENSNames = baseGetENSNames.bind(null, ensCache);
+ const getENSNames: GetENSNames = <T: ?BaseUserInfo>(
+ users: $ReadOnlyArray<T>,
+ ): Promise<T[]> => baseGetENSNames(ensCache, users);
return { ensCache, getENSNames };
}, [provider]);
return (
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Dec 10, 12:22 AM (15 h, 28 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5859122
Default Alt Text
D9696.1765326156.diff (809 B)
Attached To
Mode
D9696: [Flow202][lib][skip-ci] [4/23] Fix Flow issues with baseGetENSNames.bind
Attached
Detach File
Event Timeline
Log In to Comment