Skip to content

shared redux store for all of code-studio#9477

Merged
Bjvanminnen merged 1 commit into
stagingfrom
codeStudioRedux
Jul 14, 2016
Merged

shared redux store for all of code-studio#9477
Bjvanminnen merged 1 commit into
stagingfrom
codeStudioRedux

Conversation

@Bjvanminnen

Copy link
Copy Markdown
Contributor

I have some state I want to put into redux that is not really progress related. Over time, I suspect there will continue to be more stuff that we want to put into redux as well.

This provides a module for creating/getting a single redux store. For now it still only uses a single reducer (progress), such that all that happens is our progress state is nested one level deeper.

Eventually, we'll likely want to combine the redux store in code-studio with that of apps, but that is out of scope for this PR.

Comment thread apps/src/code-studio/progressRedux.js Outdated

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It seemed really weird having state.progress.progress, and levelProgress seems like a more accurate description of this regardless.

@islemaster

Copy link
Copy Markdown
Contributor

LGTM!

@mehalshah

Copy link
Copy Markdown
Contributor

LGTM

@Bjvanminnen Bjvanminnen merged commit 5912519 into staging Jul 14, 2016
@Bjvanminnen Bjvanminnen deleted the codeStudioRedux branch July 14, 2016 17:52
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