refactor: naming
This commit is contained in:
parent
490a2258b8
commit
78ff44e9aa
|
@ -8,12 +8,12 @@ export default {
|
||||||
'@latus/react/providers': async (latus) => {
|
'@latus/react/providers': async (latus) => {
|
||||||
const slices = latus.get('%slices');
|
const slices = latus.get('%slices');
|
||||||
const store = latus.get('%store');
|
const store = latus.get('%store');
|
||||||
const subscriptionReducers = Object.entries(slices).map(([key, slice]) => [
|
const storageReducers = Object.entries(slices).map(([key, slice]) => [
|
||||||
key,
|
key,
|
||||||
slice.subscription || (() => null),
|
slice.storage || (() => null),
|
||||||
]);
|
]);
|
||||||
store.subscribe((store) => {
|
store.subscribe((store) => {
|
||||||
storageSubscription(store, combineReducers(subscriptionReducers));
|
storageSubscription(store, combineReducers(storageReducers));
|
||||||
});
|
});
|
||||||
return [Provider, {store}];
|
return [Provider, {store}];
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user