I have a custom component whose htl template uses wcmmode.edit to conditionally render content.
When outside of an experience fragment, the wcmmode.edit works. But when I put it inside an experience fragment and link to the XF from a page, wcmmode.edit always resolves to false.
Am I using experience fragment incorrectly or something? Should experience fragment be only static content. Otherwise, how can I get the wcmmode.edit to work properly?