Skip to content

shopify.app.extensions() reports app embed status as active even when disabled in theme editor #548

@bougsid

Description

@bougsid

Describe the bug

Since January 23, shopify.app.extensions() started supporting theme app extensions. However, the behaviour for app embeds appears incorrect: even when an app embed is disabled in the theme editor, this method still returns its status as active.

To Reproduce

Steps to reproduce the behaviour:

  1. Install any app that includes an app embed.
  2. In the theme editor, do not enable the app embed (leave it disabled).
  3. Call shopify.app.extensions() and inspect the app embed entry.
  4. Notice that the status for the app embed is still reported as active.

Expected behaviour

The status returned by shopify.app.extensions() should reflect the actual state of the app embed in the theme. In this case, since the app embed is disabled, we expect the status to indicate that it is not active.

Additional context

If this is the intended behaviour of the status attribute (e.g., representing something other than the theme activation state), clarification in the documentation would be helpful. Otherwise, this appears to be a bug.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions