Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 5907 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 5907 Rev 5908
Línea 18... Línea 18...
18
 
18
 
19
  const fetchSpecificFeed = () =>
19
  const fetchSpecificFeed = () =>
Línea 20... Línea 20...
20
    dispatch(fetchFeeds(timelineUrl + '/feed/' + feed, 1))
20
    dispatch(fetchFeeds(timelineUrl + '/feed/' + feed, 1))
21
 
-
 
22
  useEffect(() => {
21
 
23
    console.log(timelineUrl)
22
  useEffect(() => {
24
    if (feed) {
23
    if (feed) {
25
      return fetchSpecificFeed()
24
      return fetchSpecificFeed()
26
    } else {
25
    } else {
27
      return dispatch(fetchFeeds(timelineUrl, currentPage))
26
      return dispatch(fetchFeeds(timelineUrl, currentPage))
Línea 28... Línea 27...
28
    }
27
    }
29
  }, [timelineUrl, currentPage])
28
  }, [timelineUrl, currentPage, feed])
30
 
29
 
31
  const onChangePageHandler = (currentPage) => {
30
  const onChangePageHandler = (currentPage) => {