Skip to content

Conversation

@dcalhoun
Copy link
Member

What?

Update the EditorService to respect the plugins configuration option. The EditorService on both iOS and Android was unconditionally calling prepareAssetBundle() regardless of the plugins configuration setting. This caused plugin assets to always be loaded even when plugins were disabled.

Why?

Fix CMM-1173.

The previous behavior of ignoring the plugins configuration effectively disabled the configuration option's ability to control the user experience. This is problematic if a host app needs to selectively disable plugin support.

How?

Added prepareAssetBundleIfEnabled() method that checks the configuration before attempting to load plugin assets:

  • iOS: Checks configuration.shouldUsePlugins
  • Android: Checks configuration.plugins

When plugins are disabled, the method returns an empty asset bundle immediately instead of attempting to download or read from cache.

Testing Instructions

  1. Enable the plugins configuration.
  2. Load the editor a compatible site so that an asset bundle is created.
  3. Verify plugin blocks are loaded.
  4. Close the editor.
  5. Disable the plugins configuration.
  6. Open the editor for the site.
  7. Verify plugin blocks are not loaded.

Accessibility Testing Instructions

N/A, no UX changes.

Screenshots or screencast

N/A, no UX changes.

The EditorService on both iOS and Android was unconditionally calling
prepareAssetBundle() regardless of the plugins configuration setting.
This caused plugin assets to always be loaded even when plugins were
disabled.

Added prepareAssetBundleIfEnabled() method that checks the configuration
before attempting to load plugin assets:
- iOS: Checks configuration.shouldUsePlugins
- Android: Checks configuration.plugins

When plugins are disabled, the method returns an empty asset bundle
immediately instead of attempting to download or read from cache.
@dcalhoun dcalhoun added the [Type] Bug An existing feature does not function as intended label Jan 23, 2026
@dcalhoun dcalhoun assigned dcalhoun and unassigned dcalhoun Jan 23, 2026
@dcalhoun
Copy link
Member Author

I can no longer reproduce this. Closing until I am able to reproduce the problem. 🙃

@dcalhoun dcalhoun closed this Jan 23, 2026
@dcalhoun dcalhoun deleted the claude/fix-plugin-loading-config-0BJN7 branch January 23, 2026 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Bug An existing feature does not function as intended

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants