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 18427aa commit 92737d3Copy full SHA for 92737d3
packages/react-native-web/src/exports/createElement/index.js
@@ -16,9 +16,15 @@ import React from 'react';
16
import ResponderEventPlugin from '../../modules/ResponderEventPlugin';
17
18
if (canUseDOM) {
19
- injectEventPluginsByName({
20
- ResponderEventPlugin
21
- });
+ try {
+ injectEventPluginsByName({
+ ResponderEventPlugin
22
+ });
23
+ } catch (error) {
24
+ // Ignore errors caused by attempting to re-inject the plugin when app
25
+ // scripts are being re-evaluated (e.g., development hot reloading) while
26
+ // the ReactDOM instance is preserved.
27
+ }
28
}
29
30
const isModifiedEvent = event =>
0 commit comments