4 ms·
When/how does the page preview refresh? Seems tricky/unlikely for the Next.js page to be in a valid state if every keystroke is synchronized.
by lucasmullens 5y ago
When/how does the page preview refresh? Seems tricky/unlikely for the Next.js page to be in a valid state if every keystroke is synchronized.
- aboodman 5y agoThe keystrokes edit the local in-memory state and are synchronized in batches to the server and other collaborators. Learn more here: https://replicache.dev/ https://replicache.dev/
- dbbk 5y agoI still haven’t seen anyone explain how this code gets deployed to the shareable URL though. Is it being pushed to the Vercel edge network when you run next dev? What is actually happening when you use this on-page code editor? Where are those code changes being persisted to?
- asadlionpk 5y agoDid you have to do some OT (Operational Transformation) to sync changes between clients?
- aboodman 5y agoThis preview version of Next.js Live doesn't do anything special for text editing. It just locks the document while one user is editing. We are excited to work with Vercel to add true collaborative text editing on top of Replicache soon.