diff --git a/packages/bridge/bridge-react/src/provider.tsx b/packages/bridge/bridge-react/src/provider.tsx index 7c743074e0e..d0f0f02b93a 100644 --- a/packages/bridge/bridge-react/src/provider.tsx +++ b/packages/bridge/bridge-react/src/provider.tsx @@ -116,9 +116,7 @@ export function createBridgeComponent(bridgeInfo: ProviderFnParams) { ReactDOM.unmountComponentAtNode(info.dom); } - (instance as any)?.bridgeHook?.lifecycle?.afterBridgeDestroy?.emit( - info, - ); + instance?.bridgeHook?.lifecycle?.afterBridgeDestroy?.emit(info); }, rawComponent: bridgeInfo.rootComponent, __BRIDGE_FN__: (_args: T) => {},