Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 3529 Rev 3652
Línea 1... Línea 1...
1
import { usePagination } from '@shared/hooks';
1
import { usePagination } from '@shared/hooks';
Línea 2... Línea 2...
2
 
2
 
3
export function useTimeline() {
3
export function useTimeline() {
Línea 4... Línea 4...
4
  const { items, loading, hasMore, nextPage, refetch } = usePagination('/microlearning/timeline');
4
  const { items, loading, elementRef } = usePagination('/microlearning/timeline');
5
 
5
 
6
  return {
6
  return {
7
    items,
-
 
8
    loading,
-
 
9
    hasMore,
7
    items,
10
    loadMore: nextPage,
8
    loading,
11
    refetch
9
    elementRef