News for hackers. Stuff that matters.
Re:Understanding UseMemo and UseCallback by HeyImAlex on Wednesday August 31, 2022 @10:18AM (#32662349)
I know they considered “keyed” hooks, but that api is a lot more verbose since you need to key _every_ hook you use, and hooks internally need to create a sub-hook context / namespace to avoid collisions which either needs to be managed manually _or_ means you can’t use plain functions as hooks (there would be some createHook function you’d run instead).

There are no comments on this comment yet.