|
|
|
|
|
by brundolf
1699 days 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")
|
|