facebook / react · Issue No. 37126
React version: Current main (b685b40d)
formatConsoleArgumentsToSingleString('%s %s', 'value');
formatConsoleArgumentsToSingleString('%d %d', 1);
Link to code example:
The helper shifts from an empty arguments array for the unmatched specifier, so it returns value undefined and 1 NaN.
This helper is used to build the message key for warnings and errors logged during render, commit, and passive effects. As a result, DevTools can track a different message from the one produced by the console.
Unmatched specifiers should remain literal, matching browser console behavior and Node util.format:
value %s
1 %d
The sibling formatConsoleArguments helper was updated with this behavior in #36930, but formatConsoleArgumentsToSingleString still consumes a missing argument.
Relay reads this issue against the repository's contribution signals: the files it is likely to touch, how the maintainers triage work this size, and what the first contribution would exercise.
The full analysis for this issue is still being assembled. Until then, the description above and the thread on GitHub are the most reliable context.