Fork me on GitHub
#fulcro
<
2018-07-02
>
chrisblom10:07:19

Is there a way to determine when a component is causing “Warning: wrapped-input is changing an uncontrolled input of type undefined to be controlled”?

tony.kay14:07:44

It's a very common problem, but no, there's no simple way that comes to mind immediately; however, if you write your inputs with ':value (or v "")' you'll generally avoid it

currentoor17:07:36

would it make sense to do that in the input wrapper you wrote?

tony.kay17:07:00

no, because that would always make them controlled

currentoor17:07:22

couldn't we check the props for the presence of the key :value?

tony.kay18:07:31

Yes, technically, but we already have a ton of macro/function mess in that code…I don’t want to complicate it more for something that has a clear fix and a react warning

currentoor19:07:42

yeah that's true