Apply minor tweak to buildReducer name
This commit is contained in:
parent
0452b816a4
commit
b5e6f9024c
|
@ -1,4 +1,4 @@
|
|||
import { buildReducers } from './redux-arg/buildReducers';
|
||||
import { buildReducer } from './redux-arg/buildReducers';
|
||||
import { createStore, compose, combineReducers } from 'redux';
|
||||
import { Types } from './redux-arg/structure';
|
||||
|
||||
|
@ -60,8 +60,8 @@ const exampleReducer2 = {
|
|||
})),
|
||||
};
|
||||
|
||||
const test = buildReducers('example', exampleReducer);
|
||||
const test2 = buildReducers('invoices', exampleReducer2);
|
||||
const test = buildReducer('example', exampleReducer);
|
||||
const test2 = buildReducer('invoices', exampleReducer2);
|
||||
|
||||
const store = createStore(
|
||||
combineReducers({
|
||||
|
|
|
@ -11,7 +11,7 @@ import { createReducer } from './reducers';
|
|||
import { PROP_TYPES } from './structure';
|
||||
|
||||
|
||||
export function buildReducers(name: string, structure: any, {
|
||||
export function buildReducer(name: string, structure: any, {
|
||||
baseSelector = state => state[name],
|
||||
locationString = '',
|
||||
}: {
|
||||
|
|
Loading…
Reference in New Issue