SEO Fields making immediate PUT, instead of having debounce.
I'm a new-er developer so am not experience at pulling all the wires around. But here's my best guess of a fix.
I wasn't able to patch myself but hopefully someone else can.
**Package Manager:** Bun
**Demo content:** Portfolio
While adding a new item to 'projects', which has an SEO module in the sidebar.
I noticed a visual glitch in the SEO field. Regularly fail to input typed content accurately. Sometimes removed recently typed letters.
Suspected issue:
PUT for the SEO fields are running onChange. Which triggers every keypress.
This causes a feedback echo of PUT & get responses, which overlap and regularly replace typed characters.
Suspected location:
CMS > Admin > SeoSettings > handleSeoChange
Needs a debounce, or wait state, for when input stops, then trigger update.
or
There may be an existing attempt at this on line 17496
React.useEffect(() => {
if (saveStatus) {
const timer = setTimeout(setSaveStatus, 3e3, null);
return () => clearTimeout(timer);
}
}, [saveStatus]);