diff --git a/ReactCommon/fabric/uimanager/UIManagerBinding.cpp b/ReactCommon/fabric/uimanager/UIManagerBinding.cpp index d1fd3861f..870ceca96 100644 --- a/ReactCommon/fabric/uimanager/UIManagerBinding.cpp +++ b/ReactCommon/fabric/uimanager/UIManagerBinding.cpp @@ -68,10 +68,11 @@ void UIManagerBinding::dispatchEvent( const EventTarget *eventTarget, const std::string &type, const folly::dynamic &payload) const { + SystraceSection s("UIManagerBinding::dispatchEvent"); + auto eventTargetValue = jsi::Value::null(); if (eventTarget) { - SystraceSection s("UIManagerBinding::JSIDispatchFabricEventToTarget"); auto &eventTargetWrapper = static_cast(*eventTarget); eventTargetValue = eventTargetWrapper.instanceHandle.lock(runtime);