35
Websocket based live-preview
Source: directus/directus#18792 · opened by @LasseRosenow
Summary Directus just got a "live-preview" and I am really happy about it, but it is not as live as it could be. Directus live-preview is only live in terms of when the save button is clicked. Other Headless-CMSs use Websockets instead. e.g. Storyblok. This way the live-preview could truly be live and every written letter would immediately show. So we can see how our updated page looks like before saving it. Basic Example _No response_ Motivation • Seeing the result of our edits without having to continuously press save buttons and waiting for a page refresh saves a lot of time. • Also things like scroll-position etc. would always stay correct. Detailed Design 1. The client website could detect that is in preview via some flag in the url 2. It could for example then do a graphql subscription instead of a graphql-request. 3. The graphql-subscription maybe has a preview flag somewhere 4. When content gets changed without pressing the save button,…
No pledges yet. Be the first to back this.
No comments yet.