Skip to content

Fixed import of createLogger#200

Closed
justinhaaheim wants to merge 1 commit into
futurice:feature/sample-appfrom
justinhaaheim:patch-1
Closed

Fixed import of createLogger#200
justinhaaheim wants to merge 1 commit into
futurice:feature/sample-appfrom
justinhaaheim:patch-1

Conversation

@justinhaaheim

Copy link
Copy Markdown

Per (https://github.com/evgenyrodionov/redux-logger/blob/master/src/index.js) the way to import createLogger is as a destructured function -- it is not necessarily the default.

Per (https://github.com/evgenyrodionov/redux-logger/blob/master/src/index.js) the way to import createLogger is as a destructured function -- it is not necessarily the default.

@FruitieX FruitieX left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the fix. As you say the old code was potentially misleading due to (incorrectly) naming a default import the same as a named export.

Edit: Looks like the module exports in redux-logger have changed, and this patch only worked with more recent versions of redux-logger. Fixed by updating redux-logger.

@FruitieX

Copy link
Copy Markdown
Contributor

Continuing in #208

@FruitieX FruitieX closed this Jun 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants