4 Matching Annotations
  1. Sep 2022
  2. Oct 2020
    1. 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.
    1. 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)