Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update posts state from feed #1229

Merged
merged 3 commits into from
Dec 22, 2017
Merged

Update posts state from feed #1229

merged 3 commits into from
Dec 22, 2017

Conversation

Sekhmet
Copy link
Contributor

@Sekhmet Sekhmet commented Dec 22, 2017

Fixes #1222

Changes:

  • Mark post as loaded from feed.

@Sekhmet Sekhmet added the bug label Dec 22, 2017
@bonustrack bonustrack temporarily deployed to busy-master-pr-1229 December 22, 2017 19:50 Inactive
const postsStates = {
...state.postsStates,
};

action.payload.postsData.forEach((post) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think I remember seeing somewhere that LoDash's _.each is faster for some browsers than the normal native .forEach

https://stackoverflow.com/a/19206409/2884655

Your call whether to use it or not :)

@Sekhmet Sekhmet temporarily deployed to busy-master-pr-1229 December 22, 2017 21:18 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants