Skip to content

Commit ba44803

Browse files
committed
(fix) immediate roomsLoaded watcher
1 parent 5ac6347 commit ba44803

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/lib/RoomsList/RoomsList.vue

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,14 @@ export default {
130130
loadingMoreRooms(val) {
131131
this.$emit('loading-more-rooms', val)
132132
},
133-
roomsLoaded(val) {
134-
if (val) {
135-
this.loadingMoreRooms = false
136-
137-
if (!this.loadingRooms) {
138-
this.showLoader = false
133+
roomsLoaded: {
134+
immediate: true,
135+
handler(val) {
136+
if (val) {
137+
this.loadingMoreRooms = false
138+
if (!this.loadingRooms) {
139+
this.showLoader = false
140+
}
139141
}
140142
}
141143
},

0 commit comments

Comments
 (0)