Skip to content

lab-david#12

Open
austriker27 wants to merge 42 commits into
codefellows-seattle-javascript-401d19:masterfrom
austriker27:full-stack
Open

lab-david#12
austriker27 wants to merge 42 commits into
codefellows-seattle-javascript-401d19:masterfrom
austriker27:full-stack

Conversation

@austriker27
Copy link
Copy Markdown

No description provided.

Comment thread lab-david/frontend/src/main.js Outdated

const store = createStore(reducer, composeWithDevTools(
applyMiddleware(thunk),
))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

linter

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Fixed!

value={this.state.username}
onChange={this.handleChange}
/>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

you need to be passing in signupRenderedJSX here {signupRenderedJSX}

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Oh yeah!

@@ -0,0 +1,2 @@
export default store => next => action =>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

you need a redux-reporter.js here instead with a try catch that sets state

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I removed the redux writer because we weren't using it.

console.log({response});
return store.dispatch(setTokenAction(response.text));
});
};
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

it would be a good idea to add a .catch here since this isnt working

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