From a24d51028710cc171f5a52f07cf110d0b9a58974 Mon Sep 17 00:00:00 2001 From: Andrew Clark Date: Tue, 6 Nov 2018 18:28:50 -0800 Subject: [PATCH] Update error codes for 16.6.1 release --- scripts/error-codes/codes.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/error-codes/codes.json b/scripts/error-codes/codes.json index 0fdd14a5634fb..09151254320a6 100644 --- a/scripts/error-codes/codes.json +++ b/scripts/error-codes/codes.json @@ -296,5 +296,9 @@ "294": "ReactDOMServer does not yet support Suspense.", "295": "ReactDOMServer does not yet support lazy-loaded components.", "296": "Log of yielded values is not empty. Call expect(ReactTestRenderer).unstable_toHaveYielded(...) first.", - "297": "The matcher `unstable_toHaveYielded` expects an instance of React Test Renderer.\n\nTry: expect(ReactTestRenderer).unstable_toHaveYielded(expectedYields)" + "297": "The matcher `unstable_toHaveYielded` expects an instance of React Test Renderer.\n\nTry: expect(ReactTestRenderer).unstable_toHaveYielded(expectedYields)", + "298": "Hooks can only be called inside the body of a function component.", + "299": "%s(...): Target container is not a DOM element.", + "300": "Rendered fewer hooks than expected. This may be caused by an accidental early return statement.", + "301": "Too many re-renders. React limits the number of renders to prevent an infinite loop." }