Ideas for Arc XP

Allow useContent in JSON output type

Currently, JSON output types need to use class-based components if they want to use a content source. useContent won't work.

This is due to two restrictions on fusion engine:

1. To import from 'fusion:content', you need to be in a JSX context.

2. You can't use JSX on JSON output type, as it breaks the JSON format and tries to output an XML format.

The first might just be a webpack thing, so possibly easy to fix

  • Santo Pfingsten
  • Jul 25 2023
  • Future consideration
  • Attach files
  • Admin
    Fatih Yildiz commented
    25 Mar 05:34pm

    Hi Santo, thanks for submitting this idea.

    We've reviewed this with the team and confirm that JS components currently only support global content source, but should consistently support useContent for feature-level content consumption. Team will prioritize this product gap.