You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Certain functions, like multicall, will only be performant when memoized. This can currently only be caught in code reviews (eg #2806).
Describe the solution you'd like useMemo should be retyped to return a branded type, and useSingleCallResult should enforce (via typing) that passed arguments are memoized.
Is your feature request related to a problem? Please describe.
Certain functions, like multicall, will only be performant when memoized. This can currently only be caught in code reviews (eg #2806).
Describe the solution you'd like
useMemo
should be retyped to return a branded type, anduseSingleCallResult
should enforce (via typing) that passed arguments are memoized.Describe alternatives you've considered
N/A
Additional context
Example tutorial of branding (like branding a cow, not like a company's brand): https://medium.com/@KevinBGreene/surviving-the-typescript-ecosystem-branding-and-type-tagging-6cf6e516523d
The text was updated successfully, but these errors were encountered: