Variable starts off with an empty ref, for example it might be one of these:
const myString = ref();
const myString = ref('');
const myString = ref<string>();
const myString = ref<string | null>();
const myString = ref<string | null>(null);
const myString = ref<string | undefined>();
const myString = ref<string | undefined>(undefined);
const myString = ref<string | null | undefined>();
Then later it's given a value:
myString.value = "I am a string";
The ref is then assigned an empty value again, for example it might be one of these:
myString.value = '';
myString.value = null;
myString.value = undefined;
Which combination of these is best to use in Vue 3?
Or maybe you do something else?
When used in the wild I'm looking for maximum compatibility with Vue 3, TypeScript type safety, and no Eslint errors.