Technoculture / echoes

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

trying to implement liveblocks #11

Closed PrinceBaghel258025 closed 1 year ago

PrinceBaghel258025 commented 1 year ago

closes #5

vercel[bot] commented 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
PrinceBaghel258025 commented 1 year ago

closes #5

sutyum commented 1 year 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 1 year ago
sutyum commented 1 year 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 1 year 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 1 year ago

Finally, resolve conflicts and we can move forward.

sutyum commented 1 year ago

still some conflicts remaining to resolve

PrinceBaghel258025 commented 1 year ago