You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i can't set state inside the onChange. i have seen this error accured already, but yet no solution found.
phoneInput: (value, country) => { const phoneNum = value; console.log(phoneNum, country); setUser({ ...user, Phone: value }); },
this is the code for the onChange.
the result of this is not error, but a rather weird behavior; the input will not show the number, and in the state it'll update 1 number top ("+9721")
The text was updated successfully, but these errors were encountered:
i can't set state inside the onChange. i have seen this error accured already, but yet no solution found.
phoneInput: (value, country) => { const phoneNum = value; console.log(phoneNum, country); setUser({ ...user, Phone: value }); },
this is the code for the onChange.
the result of this is not error, but a rather weird behavior; the input will not show the number, and in the state it'll update 1 number top ("+9721")
The text was updated successfully, but these errors were encountered: