Ideas for Arc XP

Home| Documentation| Support|

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
      Drop here to upload
    • Admin
      Fatih Yildiz commented
      March 25, 2024 17:34

      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.