react-simple-loadable 2.3.5 → 2.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/loadable.js +5 -1
  2. package/package.json +1 -1
package/loadable.js CHANGED
@@ -98,7 +98,11 @@ export function loadable(...args) {
98
98
  ...loadableDefaultConfig,
99
99
  };
100
100
  if (args.length === 1) {
101
- Object.assign(config, args[0]);
101
+ Object.assign(config, typeof args[0] === 'function'
102
+ ? {
103
+ load: args[0],
104
+ }
105
+ : args[0]);
102
106
  }
103
107
  else {
104
108
  config.load = args[0];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-simple-loadable",
3
- "version": "2.3.5",
3
+ "version": "2.3.7",
4
4
  "description": "Really simple React Loadable component",
5
5
  "repository": {
6
6
  "type": "git",