fix: components not using parent page patchShan; fix: chat example nil pointer error when sync outside action

This commit is contained in:
Joao Goncalves
2025-11-15 02:34:11 -01:00
parent 042975fdd7
commit 80879216b2
4 changed files with 20 additions and 17 deletions

View File

@@ -111,11 +111,11 @@ func main() {
newRoom.Join(&UserAndSync[Chat, UserInfo]{user: &currentUser, sync: c})
currentRoom = newRoom
roomNameString = newRoom.Name
c.Sync()
}
switchRoomAction := c.Action(func() {
switchRoom()
c.Sync()
})
switchRoom()