fix: components not using parent page patchShan; fix: chat example nil pointer error when sync outside action
This commit is contained in:
@@ -111,11 +111,11 @@ func main() {
|
||||
newRoom.Join(&UserAndSync[Chat, UserInfo]{user: ¤tUser, sync: c})
|
||||
currentRoom = newRoom
|
||||
roomNameString = newRoom.Name
|
||||
c.Sync()
|
||||
}
|
||||
|
||||
switchRoomAction := c.Action(func() {
|
||||
switchRoom()
|
||||
c.Sync()
|
||||
})
|
||||
|
||||
switchRoom()
|
||||
|
||||
Reference in New Issue
Block a user