I have a question regarding setting a default value for a prop using a getter.
props: {
userID: {
type: String,
default: ''
}
}
The default value I want to set is obtained through:
computed: {
...mapGetters('Auth', ['getId']),
}
Is there a way to make the prop UserID
automatically set to the getId
value retrieved from the mapGetter?