Issue #2110💬 AnsweredOpened July 1, 2019by adamwpe0 reactions

Deleting the DomComponent within init()

快速解答by artf

It would make sense to move such logic to a parent component

Read full answer below ↓

Question

I need to limit certain Dom Components to one, because it would cause issues when the page is published - but I can't seem to find a way to delete the component within its own init().

Is there a better way, as it doesn't seem healthy to delete someone before it's fully created.

Thanks

Answers (1)

artfJuly 12, 2019

It would make sense to move such logic to a parent component

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.