Is there something to auto update this code in vue?
问题 I got this button in the navigator that shows up when a user is logged in and when the user logs out the button is gone. But now i need to refresh my page before the button removes/appears. Here is my code: Button: <div v-if="ingelogd"> <div class="w-2/12 hidden lg:flex" v-for="(data, index) in allIngelogds" :key="index"> <button @click="uitloggen" class="downloadbtn"> {{ data.uitloggenKnop }} </button> </div> </div> in data:() i return this: ingelogd: false and then i created a mounted()