score:1

put only the propineed into the dependency array, so the useeffect callback doesn't run on click:

useeffect(() => {
   //stuff i need to run only when props do really change
}, [props.propineed])

Related Query

More Query from same tag