4 Matching Annotations
  1. Dec 2022
    1. There is no way to prevent a component that uses a portion of Context value from re-rendering, even if the used piece of data hasn’t changed, even with useMemo hook.
    2. if the list is static, i.e. elements are not added/removed/inserted/re-ordered
    3. If a parent component re-renders, it will trigger re-render of a child component regardless of its props.
    4. There is also a big myth: that re-renders happen when the component’s props change. By itself, it’s not true (see the explanation below).