4 Matching Annotations
- Sep 2022
-
developer.mozilla.org developer.mozilla.org
-
The request might or might not eventually be acted upon, as it might be disallowed when processing actually takes place.
-
- Oct 2020
-
humanwhocodes.com humanwhocodes.com
-
The false promise of your source code repository is that everything it contains is “good.” To complete your task, just find something that does something similar, copy, modify, and you’re done. Looking inside the same repository seems like a safety mechanism for quality but, in fact, there is no such guarantee.
-
-
github.com github.com
-
React hook for creating a value exactly once. useMemo doesn't give this guarantee unfortunately - https://reactjs.org/docs/hooks-faq.html#how-to-create-expensive-objects-lazily
-
-
reactjs.org reactjs.org
-
However, it only serves as a hint, and doesn’t guarantee the computation won’t re-run. But sometimes you need to be sure an object is only created once.
This lack of guarantee has led to: https://github.com/Andarist/use-constant (and the useConstant defined in react-final-form-arrays/src/useConstant.js)
Tags
Annotators
URL
-