I\'m updating x state on y state update with useEffect. Problem : When i update x state my component is re-rendered and my input goes out of focus and that allows only one i