We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b44eae1 commit 3f3c87bCopy full SHA for 3f3c87b
src/ChatWindow/ChatWindow.vue
@@ -122,10 +122,13 @@ export default {
122
}
123
},
124
125
- roomId(val) {
126
- if (!this.loadingRooms && this.rooms && this.rooms.length) {
127
- const room = this.rooms.find(r => r.roomId === val)
128
- this.fetchRoom({ room })
+ roomId: {
+ immediate: true,
+ handler(val) {
+ if (!this.loadingRooms && this.rooms && this.rooms.length) {
129
+ const room = this.rooms.find(r => r.roomId === val)
130
+ this.fetchRoom({ room })
131
+ }
132
133
134
0 commit comments