I can't get into ChatGPT. @OpenAI please help.
upstream connect error or disconnect/reset before headers. retried and the latest reset reason: connection timeout
I can't get into ChatGPT. @OpenAI please help.
upstream connect error or disconnect/reset before headers. retried and the latest reset reason: connection timeout
Hi @mattpocockuk , I'm happy with /grill-with-docs. I want give you some useful feedback Codex agent have me.
I'm always worry about stale docs. The "final consistency pass" Codex gives me safes me a few issues.
Hopefully it's an skill, but I'm not good at it.
@ryanflorence@kentcdodds Correct me if I'm wrong.
<ErrorMessage value={errText}/>
When input value change, we can only update errText and control the ErrorMessage to do the change.
defaultValue={errText} won't do it. That's why I think we need ref for imperative update.
@ryanflorence@kentcdodds Imperative way cause me to at least extract out refs and I can only then update other derived value, for example the error message.
I think I won't like it if I had to extract refs. This extra step make code not coherent. But I'll try some refectoring to see how it goes
@kentcdodds@ryanflorence The example I of mine is misleading. Very agree the valuable part is programical change. My concern is more about DX, at the time I think uncontroll pattern would require me to do more wire up and cause the logic to be spread on different place to achieve the same thing.
@ryanflorence@kentcdodds It adds up when the derived state is passed around. With uncontroll, we have to collect every setter first and call all setters. The collecting part is a nightmare.
@ryanflorence@kentcdodds What about error message to a input while you type in? With control, the value is easy to get. With uncontroll, we need to extract value setter out from the error message component. Controlled pattern is way easier to write and read. Though it cause value wiped after hydration.