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
Hello, sorry, I guess it has something to do with the component not updating if the prop that is passed in is null first, then is changed to a value later. I fixed the problem by having the dialog not render if the field it needed was empty.
Hello,
I have a form on my dialog and I'm using the useState hook:
const [ email, setEmail ] = useState(props.email)
but when I console.log(email) after this, I get undefined. If I run the component outside the dialog, then it works just fine.
The text was updated successfully, but these errors were encountered: