I pass a prop to a child component. This prop is calculated from the state of the parent component. However, computing the prop from scratch at every render is