Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: Avoid mutating props #655

Open
joshvanallen opened this issue Aug 8, 2023 · 0 comments
Open

Suggestion: Avoid mutating props #655

joshvanallen opened this issue Aug 8, 2023 · 0 comments

Comments

@joshvanallen
Copy link
Contributor

An anti-pattern that exist in this code base is mutating props. The reason why this is an anti-pattern is strictly the case of now you are mutating props that may trigger external side effects or may not trigger effects as expected.

https://vuejs.org/guide/components/props.html#one-way-data-flow

Avoiding mutating props (or params like in a function call) is generally a better practice in software development.

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

No branches or pull requests

1 participant