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

23 add redux #39

Merged
merged 6 commits into from
Nov 8, 2017
Merged

23 add redux #39

merged 6 commits into from
Nov 8, 2017

Conversation

jamesvclements
Copy link
Contributor

Decided to go with a modified ducks structure for now described in this article.

We can go over more the structure, but it's basically a tighter coupling of the different action types, action creators, and reducers that will control the application's state. Or at least keeping them together in the same files for the most part, rather than having a few different directories. I like the way this seems, but we'll see how it plays out.

Also, while doing this, I ran in to a really weird Jest caching bug that was showing old non-existent files in my coverage reports. I resolved it by following instructions here and manually clearing my Jest cache but hopefully this doesn't happen again 🤞

@codecov-io
Copy link

Codecov Report

Merging #39 into dev will increase coverage by 8.4%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##              dev      #39     +/-   ##
=========================================
+ Coverage   52.38%   60.78%   +8.4%     
=========================================
  Files           7        8      +1     
  Lines          42       51      +9     
  Branches        8       10      +2     
=========================================
+ Hits           22       31      +9     
  Misses         12       12             
  Partials        8        8
Impacted Files Coverage Δ
client/src/components/App/App.js 100% <100%> (ø) ⬆️
client/src/ducks/app/app.js 100% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 60cffc4...dc99133. Read the comment docs.

@jamesvclements
Copy link
Contributor Author

Now would be a good time to mention that both of these extension dev tools are super helpful:

React dev tools

Redux dev tools - these are particularly awesome

if you dip in to the front end at some point check them out boi

Copy link
Collaborator

@dpopp07 dpopp07 left a comment

Choose a reason for hiding this comment

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

Nice work, all looks good as far as I can see

import Landing from '../Landing/Landing';
import './App.css';

// if in development, enable redux dev tools
const enhancer =
process.env.NODE_ENV === 'development'
Copy link
Collaborator

Choose a reason for hiding this comment

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

We will need to add some config files or somethin later on. good reminder of that

@jamesvclements jamesvclements merged commit 625cee7 into bartop-io:dev Nov 8, 2017
@jamesvclements jamesvclements deleted the 23-add-redux branch November 8, 2017 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants