From 4d2a3d5275d46ec032cf3a4e0647355a5880f5c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=81=8F=E5=8F=B3?= Date: Sun, 22 Mar 2020 18:19:14 +0800 Subject: [PATCH 1/2] fix typo componentDidUpdate --- src/useForm.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/useForm.ts b/src/useForm.ts index 21a00a27..6bf02cf7 100644 --- a/src/useForm.ts +++ b/src/useForm.ts @@ -137,7 +137,7 @@ export class FormStore { if (process.env.NODE_ENV !== 'production' && !this.formHooked) { warning( false, - 'Instance created by `useForm` is not connect to any Form element. Forget to pass `form` prop?', + 'Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?', ); } }; From 0a2a5084d531d878aae079824f72ebf34c1e1cfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=81=8F=E5=8F=B3?= Date: Sun, 22 Mar 2020 18:20:05 +0800 Subject: [PATCH 2/2] Update index.test.js --- tests/index.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/index.test.js b/tests/index.test.js index f391156c..5ac5ad8a 100644 --- a/tests/index.test.js +++ b/tests/index.test.js @@ -660,7 +660,7 @@ describe('Form.Basic', () => { mount(); expect(errorSpy).toHaveBeenCalledWith( - 'Warning: Instance created by `useForm` is not connect to any Form element. Forget to pass `form` prop?', + 'Warning: Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?', ); errorSpy.mockRestore(); });