Closed dtbuchholz closed 6 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated (UTC) |
---|---|---|---|
studio | ✅ Ready (Inspect) | Visit Preview | Apr 12, 2024 2:56am |
@asutula i'm not quite sure how all of the debouncing logic and whatnot works—this was mostly chatgpt helping me through it, and this end result fixed the bug 🤷
Is there some special way to reproduce this, or it's simply that the forms are completely broken?
@asutula forms completely broken, can't use any of them. I think it's because the debouncedValue
never gets updated, so the validation checks never occur, so the form doesn't "see" any changes. Something like that.
Summary
Form inputs weren't being validated and could no longer be sumbitted (registering username, tables, proj, etc.). If you log the
debouncedValue
inhandleInputChange
, it was never updating and always undefined/empty. In this fix,updateQuery
is called directly when the timeout expires, anddebouncedValue
is removed to focus directly on usinginputValue
for the query update (vs.value
).