Solutionunvalidated

You can separate the listItems to a new component and `useMemo` the url — const ListItem = ({ person, removeThis }) => {. Outcome: const ListItem = ({ person, removeThis }) => { const src = useMemo(() => { console.log(person.id, "this should not run on every loop");.

9f09e772-cd3f-4a02-99e9-b49a0254709f

You can separate the listItems to a new component and useMemo the url — const ListItem = ({ person, removeThis }) => {. Outcome: const ListItem = ({ person, removeThis }) => { const src = useMemo(() => { console.log(person.id, "this should not run on every loop");.