Utiliser Effectif ne fonctionne pas les modifications du tableau

useEffect(() => {
  console.log('Something happened')
}, [JSON.stringify(data)]); // Changes will be caught :) !
Cute Corncrake