Skip to content

Conversation

@duncanmcclean
Copy link
Member

This pull request fixes an issue where inline bard images would visibly flicker when adding nodes (like hitting enter to add a paragraph).

This is happening because TipTap's VueNodeViewRenderer recreates inline node view components when the document structure changes. Each time the Image component is recreated, it calls loadAsset which makes an API request, causing the image to flicker as it reloads.

This PR works around the issue by caching the loaded asset data in the parent BardFieldtype component, then retrieves
the data from there when re-creating the component in order to avoid unnecessary API requests.

Fixes #13682

@duncanmcclean duncanmcclean linked an issue Jan 28, 2026 that may be closed by this pull request
@jasonvarga jasonvarga merged commit 7427b40 into master Jan 28, 2026
12 checks passed
@jasonvarga jasonvarga deleted the inline-bard-images-reloading branch January 28, 2026 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[6.x] Bard inline images reload on Enter key press

3 participants