blockGap
support preview does not work with ServerSideRender
#69323
Labels
[Package] Server Side Render
/packages/server-side-render
[Type] Bug
An existing feature does not function as intended
Description
While creating a custom dynamic block, I've enabled both
blockGap
andlayout
supports on my block and used the ServerSideRender component, the blockGap support does not appear to work in the editor. The block is rendered correctly and the blockGap changes are reflected on the front end, but in the editor, the spacing between items is not applied as expected. I have tried converting items to paragraph blocks & wrapping it in group blocks but it isn't working.Please feel free to correct me. Thanks!
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
A simpler version of the block
block.json
edit.jsx
NOTE:- Item here is a CPT and I am trying to display its post content in the block.
block php code:-
Screen.Recording.2025-02-26.at.5.01.27.PM.mov
Environment info
WordPress: 6.7.2
Testing with a block-based theme
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.
The text was updated successfully, but these errors were encountered: