refactor: naming

This commit is contained in:
cha0s 2021-04-02 17:09:19 -05:00
parent 490a2258b8
commit 78ff44e9aa

View File

@ -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}];
}, },