Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Page fails to render when child block has same blockId as the page #2057

Copy link
Copy link

Description

@SamTolmay
Issue body actions

Bug

When a block has the same id as its parent page (e.g., page id: box with a child block id: box), the page fails to render. Client.js:88 looks up the page root block via RootSlots.map[config.pageConfig.blockId]. At runtime, Slots.js:39 registers blocks in a flat map by blockId — when a child block shares the page's blockId, it overwrites the page entry, so the client tries to render the child block as the page root.

Duplicate child blockIds are otherwise fine — they share state (intentional for visibility toggling) and render correctly because children are iterated from the slot tree, not looked up from the map. Only the page-vs-child collision is broken.

Expected Behavior

A child block with the same blockId as the page should not prevent the page from rendering. The page root entry in the slot map should not be overwritable by child blocks.

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugSomething isn't workingSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.