Skip to content

[6.x] Debounce LinkFieldtype URL writes#14584

Merged
jasonvarga merged 3 commits into6.xfrom
implement-pr-b
Apr 30, 2026
Merged

[6.x] Debounce LinkFieldtype URL writes#14584
jasonvarga merged 3 commits into6.xfrom
implement-pr-b

Conversation

@jasonvarga
Copy link
Copy Markdown
Member

@jasonvarga jasonvarga commented Apr 30, 2026

Summary

Reduces churn in the Link fieldtype with two small changes scoped to resources/js/components/fieldtypes/LinkFieldtype.vue:

  • Wraps the URL-sync logic in a 150ms debounce (created in created() and markRaw-wrapped so Vue 3 doesn't proxy the function and break the debounce internals). Typing in the URL field no longer fires update + updateMeta on every keystroke.
  • Adds an identity short-circuit (meta === oldMeta) ahead of the existing JSON.stringify check in the meta watcher so unchanged meta references skip the deep comparison entirely.

This is one slice of the broader CP performance improvements from #14512

jasonvarga and others added 3 commits April 30, 2026 15:27
Co-authored-by: Waldemar Pankratz <waldemar.pankratz@voll.digital>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@jasonvarga jasonvarga merged commit 12e05e9 into 6.x Apr 30, 2026
21 checks passed
@jasonvarga jasonvarga deleted the implement-pr-b branch April 30, 2026 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant