[SPA/React] Render component with wcmmode=disabled

Avatar

Avatar

Pawel_Oc

Avatar

Pawel_Oc

Pawel_Oc

11-03-2020

Hello,

 

currently we are developing react component for Spa editor. We are now facing with the issue how to display component in preview/publish mode when we are still on author instance.

The counterpart in sightly would <div data-sly-resource="${'path/to/resource' @ wcmmode='disabled'}"></div>

What is the right way to achieve that in SPA react component? I did not find any hint in the documentation.

 

Regards,

Pawel

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

BrianKasingli

MVP

Avatar

BrianKasingli

MVP

BrianKasingli
MVP

12-03-2020

@Pawel_Oc,

Please provide mode context. Be more clear in your question, please.

What are some of them? What does this mean?

Answers (0)