Skip to content

Commit 8d87952

Browse files
committed
(fix) make roomId watcher immediate
1 parent 7ce64a6 commit 8d87952

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/lib/Room/Room.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,11 @@ export default {
279279
},
280280
281281
watch: {
282-
roomId() {
283-
this.onRoomChanged()
282+
roomId: {
283+
immediate: true,
284+
handler() {
285+
this.onRoomChanged()
286+
}
284287
},
285288
messages: {
286289
deep: true,

0 commit comments

Comments
 (0)