Skip to content

Mini-Challenge 4: State management#92

Open
AntonioSalazar wants to merge 122 commits into
cvillanueva84:masterfrom
AntonioSalazar:master
Open

Mini-Challenge 4: State management#92
AntonioSalazar wants to merge 122 commits into
cvillanueva84:masterfrom
AntonioSalazar:master

Conversation

@AntonioSalazar

Copy link
Copy Markdown

Mini_Challenge_4_testing_coverage

Site can be visited in here: https://youtube-clone-wizeline.netlify.app/

unknown added 30 commits July 18, 2021 00:54
…e Navbar styles file and the indes.jx file
installed node-sass, creating my own layout now
hamburguer menu, the input field for searching videos and the user
button
…ow the search will be available to other components
…iles, after the user enters a topic the input search form gets cleaned out
…ork when it reners the VideoDetails component

@cehawz cehawz left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Necesitas desacoplar la llamada al API de VideoList.provider.js

}

case 'REMOVE_FROM_FAVORITES':
const favoriteVideosFromLocalStorage = localStorage.getItem('favorite_videos');

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Este bloque de codigo de la 29-32 debe de estar en el action.

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.

listo! Ya movi estas lineas de codigo :)

const history = useHistory()
useEffect(() => {
let mounted = true;
const getVideos = async () => {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Este get videos debes de desacoplarlo al provider para que puedas hacer unit testing. Ademas de que esta funcionalidad deberia de estar definida en el hook de youtube.

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.

@cehawz listo, ya pase esta funcionalidad al custom hook

unknown added 23 commits August 25, 2021 11:59
…Fetch, I have also refactored the VideoList Provider so it does not have the api call inside of it
…custom Hook useFetch, everything seems to be working now
…Fetch, I have also refactored the VideoList Provider so it does not have the api call inside of it
…custom Hook useFetch, everything seems to be working now
…e VideoListReducer to the VideoListProvider, I have also changed the favicon
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