I\'m trying to add an item to my array using React useEffect, but this process repeats twice and I can\'t understand why, see my code below:
useEffect
useE