erikras / multireducer

A utility to wrap many copies of a single Redux reducer into a single key-based reducer.
MIT License
422 stars 23 forks source link

Assist with error : Uncaught TypeError: (0 , _multireducer.multireducer) is not a function #113

Closed shanewhittaker closed 8 years ago

shanewhittaker commented 8 years ago

I am getting this error and I'm not sure why? Any ideas? Uncaught TypeError: (0 , _multireducer.multireducer) is not a function

Code :

import { combineReducers } from 'redux';
import { multireducer } from 'multireducer';
import IssueEvents from './IssueEvents';
const rootReducer = combineReducers({
    issueEventCollections : multireducer({
        issued : IssueEvents,
        created : IssueEvents
    })
});
yesmeck commented 8 years ago

import multireducer from 'multireducer';

shanewhittaker commented 8 years ago

Right! Should have caught that.

Thanks