Skip to content

Commit

Permalink
Workaround for block registration (issue svandragt#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasalt committed Jul 6, 2023
1 parent 78664dc commit e20a8f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default function Edit() {
<div {...useBlockProps()} data-test="test">
<ServerSideRender
block="create-block/htmx-server-block"
EmptyResponsePlaceholder={ 'nothing' }
// EmptyResponsePlaceholder={ 'nothing' }
/>
</div>
);
Expand Down
5 changes: 4 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,8 @@ registerBlockType(metadata.name, {
* @see ./edit.js
*/
edit: Edit,
save: null
save: ({ attributes }) => {
return <div> { attributes.content } </div>;
}

});

1 comment on commit e20a8f8

@jasalt
Copy link
Owner Author

@jasalt jasalt commented on e20a8f8 Jul 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Highly experimental.

Please sign in to comment.