From 20b98ca703d142ef37a93c65a19a8bc61c095107 Mon Sep 17 00:00:00 2001 From: juneszh Date: Fri, 9 Sep 2022 11:47:38 +0800 Subject: [PATCH] Disable the useCallback warning --- npm/src/global.js | 1 + 1 file changed, 1 insertion(+) diff --git a/npm/src/global.js b/npm/src/global.js index 0f50d71..4aa6781 100644 --- a/npm/src/global.js +++ b/npm/src/global.js @@ -108,6 +108,7 @@ const ModelKit = forwardRef((props, ref) => { setIsModalHeight(event.data.height); } } + // eslint-disable-next-line react-hooks/exhaustive-deps }, []); const modalClose = () => {