20
Postmessage based live-preview
Source: directus/directus#21695 · opened by @br41nslug
Summary The "Live Preview" is not so much live currently as it does not provide updated values without saving the record. There are plans for a [WebSocket based live-preview]( however I think a window.postMessage based approach could be both more reliable and easier to implement for end users like demonstrated here Basic Example Using the following snippet on the preview page the end user can start receiving events: Motivation I believe this to be a more resilient and easy to set up solution for pushing updates to the live preview pane. Where for a WebSocket based implementation you would need the end user to connect to the socket, authenticate, subscribe, handle disconnects on the preview page and configure the backend to properly route persistent WebSockets. While with this postMessage approach the data is pushed from the Directus App directly to the preview page in the browser without needing to connect over the network from either side. Detailed Design Instead…
No pledges yet. Be the first to back this.
Comments
Similar requests
Human readable webhook URLs
5 votes · 0 comments
Add _within Filter Operator for Geospatial Proximity Queries
3 votes · 0 comments
additionally build ubuntu-based docker containers
2 votes · 0 comments
Introduce UI-Based Configuration for OAuth/SSO Providers
7 votes · 0 comments
$CURRENT_USER on Steroids
3 votes · 0 comments
No comments yet.