Technoculture / echoes

For collaboration between R&D teams and AI agents
https://www.echoes.team/
MIT License
6 stars 1 forks source link

trying to implement liveblocks #11

Closed PrinceBaghel258025 closed 11 months ago

PrinceBaghel258025 commented 11 months ago

closes #5

vercel[bot] commented 11 months 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
PrinceBaghel258025 commented 11 months ago

closes #5

sutyum commented 11 months ago

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)

PrinceBaghel258025 commented 11 months ago
sutyum commented 11 months ago
  • 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

PrinceBaghel258025 commented 11 months ago
  • 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

sutyum commented 11 months ago

Finally, resolve conflicts and we can move forward.

sutyum commented 11 months ago

still some conflicts remaining to resolve

PrinceBaghel258025 commented 11 months ago