user1320990
user1320990

Reputation:

Change 'export default' to named export

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

Answers (1)

Michał Perłakowski
Michał Perłakowski

Reputation: 92461

Try this:

import { compose } from '@ngrx/core/compose';

export const name = compose(storeLogger(), combineReducers)({
  events: fromEvents.eventsReducer,
  subscriptions: fromSubscriptions.subscriptionsReducer
});

Upvotes: 2

Related Questions