Skip to content

Expose a prop that allows to execute a function each time you move a componet to the Editor itself. #418

@Qocotzxin

Description

@Qocotzxin

Hi! Before anything thanks for the great work, amazing project!

I don't know if what I'm asking already exists, but I'm trying to build a kind of JSON map for each component added to the editor, and I was wondering if there is any event (prop) that Blocks provides to let you know that a component is now added to the "Editor" per se. The whole idea of this is knowing what is actively being edited, so I was looking for some event that Blocks provide. Since components are provided to Blocks through "blocks" props, they are not directly children, and the communications turns complex.

I might be missing something here because it's been a while since the last time I used React, but right now I think it would be pretty useful to have this prop.

I'll be happy to update my code with any suggestion if there is already a way to get this information now.

Regards!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions