Skip to content

Example of using immutable.js and reselect#145

Open
hangzho wants to merge 1 commit intoangular-redux:masterfrom
hangzho:master
Open

Example of using immutable.js and reselect#145
hangzho wants to merge 1 commit intoangular-redux:masterfrom
hangzho:master

Conversation

@hangzho
Copy link
Copy Markdown

@hangzho hangzho commented Aug 6, 2017

Recently, I was playing around with ng-redux, immutable and reselect.
Basically I duplicated the async example from the repository and refactored the code by using immutable and reselect libraries. I guess it might be helpful for someone else.

1. Duplicate the ‘async’ example and upgrade the html-webpack-plugin.
2. Refactor the code to use Immutablejs and reselect.
@@ -0,0 +1,23 @@
import { createStore, applyMiddleware } from 'redux';
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Is this file from another example? And I don't think it's actually used anywhere, right?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Yes, the code is originally from https://github.com/angular-redux/ng-redux/tree/master/examples/async. I think you are right. The file isn't used in this example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants