Closed PrinceBaghel258025 closed 1 year ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
echoes | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jul 27, 2023 1:36pm |
closes #5
Chat state sync works fine, but loading of chats take long - why? As a user adds a new query to the chat, the state of avatars do not update (requires a refresh)
- Loading takes longer because the room in in suspense mode to get the room data (all liveblocks code are client components ).
- state of avatars changes when a user enters or leaves a room (the active or non-active state of previous users ) .
SSR render the chat, so we can see it near instantly and then load the client side bits
- Loading takes longer because the room in in suspense mode to get the room data (all liveblocks code are client components ).
- state of avatars changes when a user enters or leaves a room (the active or non-active state of previous users ) .
SSR render the chat, so we can see it near instantly and then load the client side bits
chat data is coming from the db and liveblocks room, here we are relying on db data to initialize the room and render the room data
Finally, resolve conflicts and we can move forward.
still some conflicts remaining to resolve
closes #5