[SPA/React] Render component with wcmmode=disabled | Community
Skip to main content
Pawel_Oc
March 11, 2020
Solved

[SPA/React] Render component with wcmmode=disabled

  • March 11, 2020
  • 1 reply
  • 1206 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by BrianKasingli

@pawel_oc,

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

What are some of them? What does this mean?

1 reply

BrianKasingli
Community Advisor and Adobe Champion
BrianKasingliCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
March 12, 2020

@pawel_oc,

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

What are some of them? What does this mean?