My react form is using the useContext to save the value to a global state. Trying to change the value from 1-5 are rendering the previous number and not the current number.