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

Redux with stub data (fixes #8) #75

Merged
merged 1 commit into from
Mar 7, 2016
Merged

Conversation

mstriemer
Copy link
Contributor

This probably still needs some cleanup. Fixes mozilla/addons#5583.

redux-such-wow mov

const store = createStore(combineReducers({addons, search}));

const App = () => (
<Provider store={store}>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This redux stuff normally seems to go in an index.js file but we want to split it out per app. I'm not sure if this is the best place for it but apparently it works.

@mstriemer mstriemer force-pushed the add-redux-8 branch 5 times, most recently from 280a75f to 0157809 Compare March 6, 2016 23:13
bar: {slug: 'bar', title: 'The bar add-on'},
};

export default function addon(state = initialState, action) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Would be nice to tweak the style settings so we don have spaces around default args e.g. so we have state=initialState instead of state = initialState.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I found this a little weird at first. I don't totally hate it but not what I went with first.

@muffinresearch
Copy link
Contributor

There's conflicts that need addressing but this is looking good.

r+wc

@mstriemer
Copy link
Contributor Author

I don't see coveralls posting the status anymore, maybe it only does that when the coverage goes down?

mstriemer added a commit that referenced this pull request Mar 7, 2016
Redux with stub data (fixes #8)
@mstriemer mstriemer merged commit 746070f into mozilla:master Mar 7, 2016
@mstriemer mstriemer deleted the add-redux-8 branch March 7, 2016 22:22
@mstriemer mstriemer added this to the 47.3 milestone Mar 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants