Skip to content

Conversation

@farin
Copy link
Contributor

@farin farin commented Aug 22, 2015

generic solution for #7

usage with Immutable

const logger = createLogger({
  transformer: state => state && state.toJS()
});

README.md Outdated
Copy link
Contributor

Choose a reason for hiding this comment

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

Easier to have identity function as default, and then there's no need for ternary expressions in the source?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

you're absolutely right

@imevro
Copy link
Collaborator

imevro commented Aug 22, 2015

Awesome!

imevro pushed a commit that referenced this pull request Aug 22, 2015
added state transformer (allows better immutable logging)
@imevro imevro merged commit 3d2526d into LogRocket:master Aug 22, 2015
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.

3 participants