@samitouri / QOS-React / commits / a24d510287

Update error codes for 16.6.1 release

Andrew Clark committed Nov 6, 2018 at 18:28 UTC a24d51028710cc171f5a52f07cf110d0b9a58974
1 file changed +5 -1
scripts/error-codes/codes.json
+5 -1
@@ -296,5 +296,9 @@
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)"
299 + "297": "The matcher `unstable_toHaveYielded` expects an instance of React Test Renderer.\n\nTry: expect(ReactTestRenderer).unstable_toHaveYielded(expectedYields)",
300 + "298": "Hooks can only be called inside the body of a function component.",
301 + "299": "%s(...): Target container is not a DOM element.",
302 + "300": "Rendered fewer hooks than expected. This may be caused by an accidental early return statement.",
303 + "301": "Too many re-renders. React limits the number of renders to prevent an infinite loop."
304 }