@lowentry/react-redux 1.1.2 → 1.1.4
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.
- package/LeRed.js +13 -6
- package/package.json +1 -1
package/LeRed.js
CHANGED
|
@@ -168,11 +168,6 @@ export const LeRed = (() =>
|
|
|
168
168
|
};
|
|
169
169
|
|
|
170
170
|
|
|
171
|
-
LeRed.Root = LeRed.memo(({store, children}) =>
|
|
172
|
-
{
|
|
173
|
-
return React.createElement(ReactRedux.Provider, {store}, children);
|
|
174
|
-
});
|
|
175
|
-
|
|
176
171
|
LeRed.createRootElement = (elementClass, storeData) =>
|
|
177
172
|
{
|
|
178
173
|
if(ISSET(storeData))
|
|
@@ -602,7 +597,7 @@ export const LeRed = (() =>
|
|
|
602
597
|
{
|
|
603
598
|
try
|
|
604
599
|
{
|
|
605
|
-
const selector = getter
|
|
600
|
+
const selector = getter(...params);
|
|
606
601
|
return (state) =>
|
|
607
602
|
{
|
|
608
603
|
try
|
|
@@ -956,6 +951,18 @@ export const LeRed = (() =>
|
|
|
956
951
|
};
|
|
957
952
|
};
|
|
958
953
|
|
|
954
|
+
|
|
955
|
+
LeRed.Root = LeRed.memo(({store, children}) =>
|
|
956
|
+
{
|
|
957
|
+
if(ISSET(store))
|
|
958
|
+
{
|
|
959
|
+
store = LeRed.configureStore(store);
|
|
960
|
+
return React.createElement(ReactRedux.Provider, {store}, children);
|
|
961
|
+
}
|
|
962
|
+
return React.createElement(ReactRedux.Provider, {}, children);
|
|
963
|
+
});
|
|
964
|
+
|
|
965
|
+
|
|
959
966
|
if(typeof Proxy === 'undefined')
|
|
960
967
|
{
|
|
961
968
|
return LeRed;
|