The “app.extensions()” method returns stale “status” value after disabling a Theme App Extension embed block. The status remains “active” instead of updating to “available”.
Steps to Reproduce:
- Install an app with a Theme App Extension (embed block)
- Call app.extensions() → status returns “available” → true case
- Enable the app embed block
- Call app.extensions() → status returns “active” → true case
- Disable the app embed block
- Call app.extensions() → status still returns “active” → false case
I can’t see the correct status of the block every time open app
Did you press the save button between each call?
sure :v I pressed save and even refreshed the page before calling app.extensions() again.
interesting I haven’t tested this new functionality yet, but in my current flow, if the user has no permission to read_themes the check will fail, I wonder if Shopify requires this permission for the new extension checker to run?
No. it is public in app bridge app extension.
read_themes is the permission to read files from the backend. We are also using it. But for optimization, App Bridge is the better approach to use.