Switch language한국어
Back to the list

TipTap + Yjs + Hocuspocus saves content, but other users only see updates after a page refresh

TL;DR AI

Key summary

2 min read
  1. A Next.js app using TipTap, Yjs, and Hocuspocus is saving edits to Postgres, but other clients don’t see updates until they refresh.

  2. The likely issue is that existing editor content is not being initialized into the shared Yjs document correctly, so live collaboration never fully attaches.

  3. The user also wants a proper pattern for persisting both the JSON document and Yjs state in Postgres.

  4. Troubleshooting focuses on missing WebSocket broadcasts and ensuring the Hocuspocus/Yjs sync pipeline is actually pushing updates to connected editors.

Read the original