I have searched this issue and tried all the things but did not work for me. I am using Vue 3 ref and it needs to be updated after calling the Axios with the response but it is not getting updated here is some piece of code.
Here invite_link is an object
const props = defineProps({
'workplace': Object
});
// Also tried const workplace = props.workplace;
const workplace = ref(props.workplace);
axios.post(url).then(res=>{
workplace.value.invite_link = res.data.workplace.invite_link
});
and in the template I am using v-show="workplace.invite_link" that needs to be shown after Axios ran successfully. I have also check Vue devtools and it still shows the old workplace object