- 
                Notifications
    
You must be signed in to change notification settings  - Fork 49.7k
 
Closed
Labels
Status: UnconfirmedA potential issue that we haven't yet confirmed as a bugA potential issue that we haven't yet confirmed as a bugType: Question
Description
React version: 17.0.1
Steps To Reproduce
- Go at https://codesandbox.io/s/warning-issue-formik-v2-tutorial-start-forked-lwtxx?file=/src/index.js
 - Then reproduce the famous "warning" (the issue is not about this warning)

(type something in the Tool ID)
(the codesandboxe may freeze a little bit, try to reload the page) - Open the browser console (chrome in my case) and you will see

Then go to the code (red arrow on the image above) - Make a breakpoint here

reload the page and initiate the "warning" again (see 2) - Go down the callstack and you can see the "warning" is written by this code

 - Now the question.. I'm using the 17.0.1 version and this code shouldn't exist there. Check this out https://github.com/facebook/react/releases/tag/v17.0.1 and you can find only this:

As you can see instead oferror('A component is changing...we haveconsole.error( 'A component is changing....
The changes were made by this 0cf22a5#diff-e94b1d695a508a3bacbab157bbc3035d75e53174bdb82181077d1b374046f9a6 long time ago. - Does it mean that 17.0.1 version of react and react-dom packeges were not built from this source code https://github.com/facebook/react/releases/tag/v17.0.1 ? Seems like a big issue then.
 - It happens without Codesandbox as well.
 
Link to code example:
https://codesandbox.io/s/warning-issue-formik-v2-tutorial-start-forked-lwtxx?file=/src/index.js
The current behavior
We keep seeing the word "Warning" (which is produced by warning function, though it's not a warning but an error)

The expected behavior
We shouldn't see the word "Warning" if the packages v.17.0.1 were bilt from https://github.com/facebook/react/releases/tag/v17.0.1 sourcecode (because it calls  console.error( 'A component is changing...   instead of error('A component is changing... )

Metadata
Metadata
Assignees
Labels
Status: UnconfirmedA potential issue that we haven't yet confirmed as a bugA potential issue that we haven't yet confirmed as a bugType: Question