We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52aa8be commit bcf2920Copy full SHA for bcf2920
packages/common/refresh-runtime.js
@@ -314,6 +314,9 @@ function collectCustomHooksForSignature(type) {
314
}
315
316
export function injectIntoGlobalHook(globalObject) {
317
+ if (globalObject.__vite_plugin_react_injectIntoGlobalHook) return
318
+ globalObject.__vite_plugin_react_injectIntoGlobalHook = true
319
+
320
// For React Native, the global hook will be set up by require('react-devtools-core').
321
// That code will run before us. So we need to monkeypatch functions on existing hook.
322
0 commit comments