4 ms·
Because Elm has language-level support, while hooks try to do things that should be language-level but aren't, which is why they have so many footguns in genera
by brundolf 5y ago
Because Elm has language-level support, while hooks try to do things that should be language-level but aren't, which is why they have so many footguns in general.
To get concrete, there's no possible way this function could be automatically memoized at a library/framework level:
const myCallback = () => setFoo("bar")