torchbox / wagtail-headless-preview

Previews for headless Wagtail setups
BSD 3-Clause "New" or "Revised" License
120 stars 20 forks source link

Live Previews do not work. #31

Closed dopry closed 1 year ago

dopry commented 2 years ago

As far as I can tell in wagtail_headless_prevew.models.HeadlessPreviewMixin.serve_preview, use_live_preview is never true, even when ?live_preview=true is passed to the endpoint, which means the signal that triggers the subscription update is never sent.

I'm using the wagtail_grapple example to test, see my branch at https://github.com/dopry/wagtail-grapple/tree/fix/live-preview-subscriptions

zerolab commented 1 year ago

I've dropped that code as I am not using anywhere, and it broke at some point. Also the new Wagtail 4.0 live preview just works

dopry commented 1 year ago

I noticed they started working in 4.x, thanks for taking the time to look into it.