I am new to learning Vue.js and I'm currently working on developing an application that utilizes Vuetify and Nuxt. One of the features I want to implement is a reusable editor modal. Through my research, I have discovered that I can utilize v-dialog for this purpose. My app contains a list of pets, and I would like an editor to appear when the "Edit" action link is clicked on each row. This editor should fetch the pet object from the backend and display the editing form. Upon clicking the "Save" button in the modal, the pet should be saved and the parent component should be notified to update the pet list accordingly. Additionally, I aim to have the capability to add pets on another page, such as selecting existing pets or registering a new pet on a "Persons" page by using the same editor.
Are there any recommended approaches for creating a component that can be prompted to load a pet based on its ID, open an empty form, handle saving pets, and notify the parent component when a pet has been updated or created?