I have this error message :
55:6 Warning: React Hook useEffect has a missing dependency: 'index'. Either include it or
remove the dependency array. You can also replace multiple useState variables with useReducer if 'setAnswersHistoric' needs the current value of 'index'. react-hooks/exhaustive-deps
But the problem is that if I put index in the dependencies it will break down the logic.