Skip to content

Reusable blocks preview not working. #16808

@youknowriad

Description

@youknowriad

The preview that shows when you hover reusable blocks in the inserter has regressed. It shows:

Capture d’écran 2019-07-30 à 12 13 01 PM

I tried debugging quickly. I think the issue comes from the fact that we use an embedded editor (separate blocks store) but we don't load the content of the reusable blocks in the sub reducer.

Potential solutions

  • Refactor the reusable blocks to use an embedded editor (There's some PRs in progress)
  • try to load the reusable blocks in the BlockEditorProvider used for the preview.

Questions

This used to work, so I'm curious when it regressed and what's the "hack" that allowed it to work previously.

cc @aduth @jorgefilipecosta

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Feature] InserterThe main way to insert blocks using the + button in the editing interface[Feature] Synced PatternsRelated to synced patterns (formerly reusable blocks)[Type] BugAn existing feature does not function as intended[Type] RegressionRelated to a regression in the latest release

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions