- import React, { lazy, Suspense } from 'react';
+ import React from 'react';
import PropTypes from 'prop-types';
-
-const DynamicProvider = lazy(() => import('react-redux')
- .then((module) => ({ default: module.Provider }))
- .catch(() => ({ default: ({ children }) => children })));
+import { Provider } from 'react-redux';
/**
* @memberof module:React
@@ -44,13 +41,11 @@ Source: react/OptionalReduxProvider.jsx
}
return (
- <Suspense fallback={null}>
- <DynamicProvider store={store}>
- <div data-testid="redux-provider">
- {children}
- </div>
- </DynamicProvider>
- </Suspense>
+ <Provider store={store}>
+ <div data-testid="redux-provider">
+ {children}
+ </div>
+ </Provider>
);
}
@@ -144,7 +139,7 @@
diff --git a/react_PageWrap.jsx.html b/react_PageWrap.jsx.html
index a560dd59b..e3ceb3b6a 100644
--- a/react_PageWrap.jsx.html
+++ b/react_PageWrap.jsx.html
@@ -137,7 +137,7 @@
diff --git a/react_hooks.js.html b/react_hooks.js.html
index 8aed60aaa..2cca7c916 100644
--- a/react_hooks.js.html
+++ b/react_hooks.js.html
@@ -163,7 +163,7 @@
diff --git a/react_index.js.html b/react_index.js.html
index 97c65a56a..b9912a477 100644
--- a/react_index.js.html
+++ b/react_index.js.html
@@ -129,7 +129,7 @@
diff --git a/scripts_GoogleAnalyticsLoader.js.html b/scripts_GoogleAnalyticsLoader.js.html
index 5c345f22f..b987f9847 100644
--- a/scripts_GoogleAnalyticsLoader.js.html
+++ b/scripts_GoogleAnalyticsLoader.js.html
@@ -166,7 +166,7 @@
diff --git a/testing_index.js.html b/testing_index.js.html
index 14763e2ab..9b9940fd1 100644
--- a/testing_index.js.html
+++ b/testing_index.js.html
@@ -122,7 +122,7 @@
diff --git a/testing_initializeMockApp.js.html b/testing_initializeMockApp.js.html
index 73191b01b..0463fbe06 100644
--- a/testing_initializeMockApp.js.html
+++ b/testing_initializeMockApp.js.html
@@ -190,7 +190,7 @@
diff --git a/testing_mockMessages.js.html b/testing_mockMessages.js.html
index f518c2e95..823da5a99 100644
--- a/testing_mockMessages.js.html
+++ b/testing_mockMessages.js.html
@@ -136,7 +136,7 @@
diff --git a/utils.js.html b/utils.js.html
index cc25f20c3..2f5f6836d 100644
--- a/utils.js.html
+++ b/utils.js.html
@@ -316,7 +316,7 @@