SAP / inquirer-gui

Displays inquirer.js questions in an interactive HTML form. It displays each question type in its corresponding UI control; it supports answer validations and question visibility based on a given condition.
Apache License 2.0
27 stars 13 forks source link

Suggestion: Avoid mutating props #655

Open joshvanallen opened 1 year ago

joshvanallen commented 1 year ago

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.