gothinkster / react-redux-realworld-example-app

Exemplary real world application built with React + Redux
https://react-redux.realworld.io
MIT License
5.57k stars 2.51k forks source link

Warning on UPDATE_FIELD_AUTH action uncontrolled input #112

Open Lyca0n opened 6 years ago

Lyca0n commented 6 years ago

When the first action of type UPDATE_FIELD_AUTH is triggered, a warning with the message "A component is changing an uncontrolled input of type email to be controlled. Input elements should not switch from uncontrolled to controlled (or vice versa). Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://fb.me/react-controlled-components"

is generated, it may be fixed by setting a default "email" and "password" fields on the auth reducer @ "src/reducers/auth.js"

Thank you.