Skip to content
This repository was archived by the owner on Jun 6, 2019. It is now read-only.

Reduce Import Scope & Ignore Undefined Returns from Reducers#5

Open
wallzero wants to merge 4 commits into
dacz:masterfrom
wallzero:master
Open

Reduce Import Scope & Ignore Undefined Returns from Reducers#5
wallzero wants to merge 4 commits into
dacz:masterfrom
wallzero:master

Conversation

@wallzero

Copy link
Copy Markdown

Based on the following issue: #4

@wallzero

Copy link
Copy Markdown
Author

Nevermind this still doesn't work. If the scan returns that state it also overwrites any states called by nested reducers.

@wallzero

wallzero commented Feb 23, 2017

Copy link
Copy Markdown
Author

Tried using an || instead of storing the object but seems to only work some of the time; I'm guessing it depends on the order of the reducers in the scan. It be great if there was a way to have the scan itself skip returning an item.

Remove handling of undefined returns from reducer
@wallzero

Copy link
Copy Markdown
Author

In the end I don't think this PR is going to resolve my issue. I think handling undefined is a good practice, but it seems if I don't return (state) > state, the scan will overwrite any changes to state by nested reducers. I've removed the undefined handler and now this PR is only about scoped imports. I'll continue comments in the issue ticket.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants