Skip to content

Feature/issue#2_redux_arquitecture#7

Open
Carchuli wants to merge 8 commits into
developfrom
feature/issue#2-redux-arquitecture
Open

Feature/issue#2_redux_arquitecture#7
Carchuli wants to merge 8 commits into
developfrom
feature/issue#2-redux-arquitecture

Conversation

@Carchuli

@Carchuli Carchuli commented Apr 7, 2020

Copy link
Copy Markdown
Collaborator

Prepare a redux architecture example.

@dailymp

dailymp commented Apr 8, 2020

Copy link
Copy Markdown
Owner

Prepare a redux architecture example.

@Carchuli The PR sould be from your branch to develop branch is the correct way of working

@Carchuli Carchuli changed the base branch from master to develop April 8, 2020 12:16

@dailymp dailymp left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

The PR must be from your branch to develop

const { nameFromProps } = props;
const dispatch = useDispatch();
const fruitList = useSelector((state) => state.fruits.fruitList);
console.log('fruitList', fruitList);

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Remove console.log

deleteFruit,
addFruit,
} from './../../redux/actions/fruitsActions';
import './styles.scss';

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Can you use less?

fetchfruits,
deleteFruit,
addFruit,
} from './../../redux/actions/fruitsActions';

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Can you use barrel pattern?

@Carchuli

Carchuli commented Apr 8, 2020

Copy link
Copy Markdown
Collaborator Author

The PR must be from your branch to develop

I've added some dependencies as material-ui, so you'll need to run: npm install to install them.
Also bugs have been fixed

@dailymp

dailymp commented Apr 8, 2020

Copy link
Copy Markdown
Owner

The PR must be from your branch to develop

I've added some dependencies as material-ui, so you'll need to run: npm install to install them.
Also bugs have been fixed

Ok, I will review new changes you have commit, now I can see everything properly, it was problems with my git I have to clone again the repo because with git pull the new changes were not coming at all

@@ -0,0 +1,28 @@
import { GET_ALL_FRUITS, DELETE_FRUIT, ADD_FRUIT } from './../constants';
import { getListOfFruit } from '../../myApi/index';

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Please could you simulate api requests using axios with this fake api: https://jsonplaceholder.typicode.com/?

@dailymp

dailymp commented Apr 10, 2020

Copy link
Copy Markdown
Owner

@Carchuli Please you have conflicts fix it!

@Carchuli

Copy link
Copy Markdown
Collaborator Author

@dailymp

dailymp commented Apr 13, 2020

Copy link
Copy Markdown
Owner

In this PR I can see you just left some files with conflicts, please @Carchuli can you fix it?

  • On the other hand I missing the other PR with tests? Do you have any problems to complete it?

@Carchuli Carchuli changed the title Feature/issue#2 redux arquitecture Feature/issue#2_redux_arquitecture Apr 13, 2020
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