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
If someone writes a useCoolMemo hook which has a similar signature of useMemo, there should be a generic macro which gives access to the inputs array. A proposed syntax is:
I think a "keyword" could be kind of cool too. Another thing to consider is that some hooks accept more than one function. We need to gather some function signatures of hooks in the wild to determine the best approach.
If someone writes a
useCoolMemo
hook which has a similar signature ofuseMemo
, there should be a generic macro which gives access to the inputs array. A proposed syntax is:Which could become:
Special cases
We could also treat some special cases in a different way for performance reasons.
Array destructuring
Becomes:
Arguments spread
Becomes:
The text was updated successfully, but these errors were encountered: