From 0d2d22264fde3da02f5479adcf0a51ebe9f2dfff Mon Sep 17 00:00:00 2001 From: W3D Date: Sat, 4 Apr 2026 23:19:12 +0200 Subject: [PATCH] [General] [Fixed] - Fix missing format specifier in renderApplication invariant The invariant call passes rootTag as a substitution argument but the format string has no %s placeholder, so the error message never shows the actual value of rootTag. --- .../react-native/Libraries/ReactNative/renderApplication.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/Libraries/ReactNative/renderApplication.js b/packages/react-native/Libraries/ReactNative/renderApplication.js index 875e3fef4be0..04a272bfbf79 100644 --- a/packages/react-native/Libraries/ReactNative/renderApplication.js +++ b/packages/react-native/Libraries/ReactNative/renderApplication.js @@ -44,7 +44,7 @@ export default function renderApplication( displayMode?: ?DisplayModeType, useOffscreen?: boolean, ) { - invariant(rootTag, 'Expect to have a valid rootTag, instead got ', rootTag); + invariant(rootTag, 'Expect to have a valid rootTag, instead got %s', rootTag); const performanceLogger = scopedPerformanceLogger ?? GlobalPerformanceLogger;