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 ec98e11 commit 8f779b8Copy full SHA for 8f779b8
src/HOC.js
@@ -15,7 +15,7 @@ import toLoadable from './loadable';
15
const loader = (loaderFunction, options = {}) => {
16
const loadable = toLoadable(loaderFunction, !options.noAutoImport);
17
18
- // eslint-disable-next-line
+ /* eslint-disable react/display-name, react/prop-types */
19
const ImportedComponent = ({importedProps = {}, ...props}) => (
20
<HotComponentLoader
21
loadable={loadable}
@@ -40,6 +40,8 @@ const loader = (loaderFunction, options = {}) => {
40
))
41
: ImportedComponent;
42
43
+ /* eslint-enable */
44
+
45
Imported.preload = () => {
46
loadable.load().catch(() => ({}));
47
return loadable.resolution;
0 commit comments