diff --git a/packages/base-controller/src/BaseControllerV2.ts b/packages/base-controller/src/BaseControllerV2.ts index 5adb01b9df..92ea30f9ad 100644 --- a/packages/base-controller/src/BaseControllerV2.ts +++ b/packages/base-controller/src/BaseControllerV2.ts @@ -113,6 +113,17 @@ export class BaseController< public readonly metadata: StateMetadata; + /** + * The existence of the `subscribe` property is how the ComposableController used to detect + * whether a controller extends the old BaseController or the new one. We set it to `undefined` here to + * ensure the ComposableController never mistakes them for an older style controller. + * + * This property is no longer used, and will be removed in a future release. + * + * @deprecated This will be removed in a future release + */ + public readonly subscribe: undefined; + /** * Creates a BaseController instance. *