As I work on a complex form, my goal is to ensure that users do not lose their data when reloading the browser. Thankfully, modern browsers automatically refill data on reloads - even inputs with v-model
retain their values during beforeMount
. However, they lose this data once they reach mounted
, as they are filled with empty data from the model.
I am considering filling the model on beforeMounted
with data extracted from the DOM. Is there a way to get the reference of a v-model
linked to the object in the DOM? Alternatively, what other methods would you recommend for achieving this?