My component runs a function from a prop without me explicitly telling it to run it

Original message was deleted