Skip to content

Comments

Assignment#7

Open
MarkGuldhammer wants to merge 11 commits intouvdata:masterfrom
MarkGuldhammer:master
Open

Assignment#7
MarkGuldhammer wants to merge 11 commits intouvdata:masterfrom
MarkGuldhammer:master

Conversation

@MarkGuldhammer
Copy link

My take on the Fun with Redux. Finished the first 3 challenges, but also pushed code for an almost complete solution for challenge 4, to give an idea of what i was going for.

@woutervanvliet woutervanvliet self-assigned this Feb 26, 2019
Copy link
Contributor

@woutervanvliet woutervanvliet left a comment

Choose a reason for hiding this comment

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

Tak for din besvarelse. Prøv evt at se om ikke du kan tilføje en Dockerfile som kan køre din løsning.

Mvh,
Wouter


export const onExpandItem = (itemId, expanded) => (dispatch) => {
if (!expanded) {
dispatch ({
Copy link
Contributor

Choose a reason for hiding this comment

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

Det ville være mere oplagt bare at returnere din action object.

const mapStateToProps = (state) => {
const { endpoint, data } = state;

const { endpoint, data, expandedItems } = state;
Copy link
Contributor

Choose a reason for hiding this comment

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

overvej evt at give ItemDisplay ansvar for at hente sin egen expanded status.

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.

2 participants