Issue #2329πŸ’¬ AnsweredOpened October 15, 2019by mustahsanmustafa1 reactions

Canvas clears component rendering after Traits value change event

Quick answerby artf❀ 1

@mustahsanmustafa I think there is something wring here... For any new app-body component you're creating a new inside with this this.components('<app-body props='${value}'></app-body>'). The method this.components updates inner content not the component itself... If you need to update a property you should do just th...

Read full answer below ↓

Question

I have created custom components and blocks, but when value of traits change, the rendered element gets invisible from the canvas until it is reloaded. So whenever this line is executed, the loaded block gets invisible or unrendered. A workaround that i got was to re-render DomComponents after this call: but that does not seems a good approach, So is there anyother workaround for this problem?

Answers (2)

artfβ€’ October 19, 2019

@mustahsanmustafa I think there is something wring here... For any new app-body component you're creating a new inside with this this.components('<app-body props='${value}'></app-body>'). The method this.components updates inner content not the component itself... If you need to update a property y...

pouyamiralayiβ€’ October 16, 2019

Hi there! being more specific in reaction to what attribute is actually changing would help you to reduce the performance issue in your case. cheers!

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.