Skip to content

Performance issues when nesting multiple components in a slot #1208

Description

@FedericoBonel

Description

Updating a component's prop that uses a slot with multiple nested components causes severe lag in the editor. This is reproducible in the demo.

Environment

  • Puck version: 0.19.3

Steps to reproduce

  1. Navigate to the Puck demo app: https://demo.puckeditor.com/edit
  2. Drag and drop a Grid component into the editor
  3. Populate the grid with multiple Card components (it depends on hardware, but more than 60 to 80 should start to show the problem)
  4. Change the "gap" field in the grid

What happens

The editor becomes sluggish and unresponsive when modifying fields in the parent component with the slot that has multiple children.

What I expect to happen

Changes to any component's fields should apply smoothly, regardless of the number of children rendered in their slots.

Additional Media

cursorful-video-1753706241203.mp4

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions