Expand my Community achievements bar.

SOLVED

[SPA/React] Render component with wcmmode=disabled

Avatar

Level 1

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@Pawel_Oc,

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

What are some of them? What does this mean?

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

@Pawel_Oc,

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

What are some of them? What does this mean?