diff --git a/packages/react-native/ReactCommon/react/nativemodule/mutationobserver/NativeMutationObserver.cpp b/packages/react-native/ReactCommon/react/nativemodule/mutationobserver/NativeMutationObserver.cpp index 1dab573fafc..98ff3f2e291 100644 --- a/packages/react-native/ReactCommon/react/nativemodule/mutationobserver/NativeMutationObserver.cpp +++ b/packages/react-native/ReactCommon/react/nativemodule/mutationobserver/NativeMutationObserver.cpp @@ -116,8 +116,9 @@ void NativeMutationObserver::onMutations(std::vector& records) { pendingRecords_.emplace_back( NativeMutationRecord{ record.mutationObserverId, - // FIXME(T157129303) Instead of assuming we can call into JS from - // here, we should use an API that explicitly indicates it. + // It's safe to call into JS here because we only check mutations + // synchronously when committing from React (so we're in a JS + // task already). getPublicInstanceFromShadowNode(*record.targetShadowNode), getPublicInstancesFromShadowNodes(record.addedShadowNodes), getPublicInstancesFromShadowNodes(record.removedShadowNodes)});