Skip to content

Commit c8ade99

Browse files
committed
Update error codes for 16.6.0 release
1 parent 6c29eab commit c8ade99

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scripts/error-codes/codes.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,5 +291,10 @@
291291
"289": "Function components cannot have refs.",
292292
"290": "Element ref was specified as a string (%s) but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://fb.me/react-refs-must-have-owner for more information.",
293293
"291": "Log of yielded values is not empty. Call expect(ReactTestRenderer).toHaveYielded(...) first.",
294-
"292": "The matcher `toHaveYielded` expects an instance of React Test Renderer.\n\nTry: expect(ReactTestRenderer).toHaveYielded(expectedYields)"
294+
"292": "The matcher `toHaveYielded` expects an instance of React Test Renderer.\n\nTry: expect(ReactTestRenderer).toHaveYielded(expectedYields)",
295+
"293": "Context can only be read while React is rendering, e.g. inside the render method or getDerivedStateFromProps.",
296+
"294": "ReactDOMServer does not yet support Suspense.",
297+
"295": "ReactDOMServer does not yet support lazy-loaded components.",
298+
"296": "Log of yielded values is not empty. Call expect(ReactTestRenderer).unstable_toHaveYielded(...) first.",
299+
"297": "The matcher `unstable_toHaveYielded` expects an instance of React Test Renderer.\n\nTry: expect(ReactTestRenderer).unstable_toHaveYielded(expectedYields)"
295300
}

0 commit comments

Comments
 (0)