When using vuex-module-decorators
, is it better to set the default value of a data property to null
or undefined
? For example:
export default class ComponentName extends Vue {
post: BlogPost | null = null
}
or
export default class ComponentName extends Vue {
post: BlogPost | undefined = undefined
}
Is there a definitive answer to this question?