Skip to content

Conversation

oketafred
Copy link
Contributor

The Vue 3 documentation recommends not accessing props via props.propName in the template when using <script setup>. Instead, you can directly use the prop name in the template.

No breaking changes are introduced as the functionality remains the same.

This change removes unnecessary `props` destructuring in Vue components and directly uses the props where applicable. This improves code readability and consistency across the codebase. No breaking changes are introduced as the functionality remains the same.
@tnylea
Copy link
Contributor

tnylea commented Feb 24, 2025

Thanks @oketafred. Good to know. I'll test it out right now and if everything looks good. I'll approve the PR 👍

@taylorotwell taylorotwell merged commit ef2c4c8 into laravel:main Feb 24, 2025
2 checks passed
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.

3 participants