Short description of issue
If a setting is changed while the preview’s re-render of the section is still pending, the editor discards that response as out of date but never requests a render for the latest value, so the preview stays stale until another change, a click inside the preview, Save or a reload.
Reproduction steps
- Open the editor on a template whose section takes over ~1 s to re-render. Ours: a product section with 198 theme blocks nested 8 deep, 1.5–2.2 s per change.
- Select a block in that section and type one character into a text setting.
- About 1–2 s later, while the preview’s re-render request is still pending, type a second character.
- Stop typing and wait.
Expected: the preview shows both characters once rendering finishes.
Actual: the preview never updates; the setting field shows both characters.
Additional info
What happens
After a setting change, the preview requests a re-render of the section (GET /products/<handle>?source=…&oseid=…). If a second change is made while that request is still pending, the editor discards the response as out of date but sends no new render request for the latest value. The preview keeps showing the state from before the first change. Nothing in the preview fires (shopify:section:unload / shopify:section:load never run), so this isn’t theme JavaScript.
Measured (Chrome 141, macOS, 27 Oct 2026; seconds after the first keystroke)
| 2nd key typed | Render request(s) | Preview updated |
|---|---|---|
| 0.58 s | 0.64 → 2.41 s, 1.25 → 3.26 s | Yes, at 3.27 s |
| 1.28 s | 0.63 → 2.14 s, then none | No |
| 2.28 s | 0.62 → 2.84 s, then none | No |
The preview catches up as soon as anything else triggers a render: another keystroke, a click inside the preview, Save or a reload.
Second trigger: right after the editor loads, the first change sometimes produces only three source=visualPreview requests (147 KB, 197 KB, 873 KB; 0.8–1.5 s each) and no section render, with the same stale result.
Possibly related: every keystroke also sends TemplateUpdate (app proxy) with the whole template (726 KB here, 858 KB on a smaller page). It takes 10–13 s and returns resourceHashes: null on both templates.
Ask: when an in-flight render response is discarded as stale, request a render for the latest pending state, so the preview always converges.
Happy to share a store and theme with Shopify staff to reproduce.
What type of topic is this
Bug report