For some reason the list is not updating. Any ideas why? The function is called and the entry is removed properly. But it keeps on showing the old list along with the removed entry.
(I have not included the code, wherein the users
list in populated at init).
<div x-data="{ users: {} }">
<template x-for="user in users" :key="user.id">
<div x-show="user && !user.err" class="">
<span x-show="user.name" x-text="user.name"></span>
<button x-show="user.name" @click="this.users = removeUser(user.id)">
<svg></svg>
</button>
</div>
</template>
</div>
Thank you.