From c29710a570f01736a24d66af7b14edf3deef7f68 Mon Sep 17 00:00:00 2001 From: Jack Works Date: Mon, 9 Nov 2020 03:59:53 +0800 Subject: [PATCH] fix: useImperativeMethods to useImperativeHandle (#20194) --- packages/react-refresh/src/ReactFreshBabelPlugin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-refresh/src/ReactFreshBabelPlugin.js b/packages/react-refresh/src/ReactFreshBabelPlugin.js index 49b0dce0f76ae..4171893e41ddd 100644 --- a/packages/react-refresh/src/ReactFreshBabelPlugin.js +++ b/packages/react-refresh/src/ReactFreshBabelPlugin.js @@ -226,8 +226,8 @@ export default function(babel, opts = {}) { case 'React.useRef': case 'useContext': case 'React.useContext': - case 'useImperativeMethods': - case 'React.useImperativeMethods': + case 'useImperativeHandle': + case 'React.useImperativeHandle': case 'useDebugValue': case 'React.useDebugValue': return true;