Skip to content

Conversation

@ace-of-aces
Copy link
Contributor

Hi!

I noticed that this starter kit uses refs with matching names to reference DOM elements inside the composition API.

Since Vue 3.5, there is the new useTemplateRef() helper method that has several benefits for DX and type safety best described here 😄

In this PR, I refactored all usages of template refs to use this new API.

Details

  • I intentionally removed the <InstanceType<typeof Input> | null> type argument in DeleteUser.vue, as it doesn't better type safety than the default type provided through useTemplateRef (for the way it's used here).
  • I also removed the refs in Password.vue, as they don't provide functionality anymore since Joe removed the focus-after-error handling in fbcf149

@taylorotwell taylorotwell merged commit 7be0237 into laravel:main Oct 30, 2025
3 checks passed
nlmenke pushed a commit to nlmenke/vertebrae that referenced this pull request Nov 3, 2025
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.

2 participants