Skip to content

Commit

Permalink
Merge branch 'ft-name' into 'master'
Browse files Browse the repository at this point in the history
feat: component with renderBlock should be set with displayName

Closes #36

See merge request fe/infra/halation!63
  • Loading branch information
ryuever committed Aug 2, 2021
2 parents 8f42790 + e4eed37 commit 774efcf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/halation-core/src/BlockWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ const BlockWrapper = <RBP extends RenderBlockBaseComponentProps, P extends Block
isComponentLoadRef.current = true;

if (renderBlock) {
// to make return component with useful displayName.
renderBlock.displayName = blockKey
return createElement(
renderBlock,
{
Expand Down

0 comments on commit 774efcf

Please sign in to comment.