Jul 7, 2023
Great point! ππ I agree that the primary use case for useMemo is to prevent unnecessary dependency updates, rather than solely focusing on optimization. It's important to prioritize stability in dependency arrays to avoid unintended reruns of effects. Thanks for sharing your insights and highlighting the vital role of useMemo in managing object construction and filtered/mapped arrays! π