Reputation:
I have the following export:
import { compose } from '@ngrx/core/compose';
export default compose(storeLogger(), combineReducers)({
events: fromEvents.eventsReducer,
subscriptions: fromSubscriptions.subscriptionsReducer
});
I want to export as a named function, not default. How can I do this?
Upvotes: 0
Views: 471
Reputation: 92461
Try this:
import { compose } from '@ngrx/core/compose';
export const name = compose(storeLogger(), combineReducers)({
events: fromEvents.eventsReducer,
subscriptions: fromSubscriptions.subscriptionsReducer
});
Upvotes: 2