Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 2191 Rev 2774
Línea 3... Línea 3...
3
 
3
 
4
import { axios } from '@app/utils'
4
import { axios } from '@app/utils'
5
import { addNotification } from '@app/redux/notification/notification.actions'
5
import { addNotification } from '@app/redux/notification/notification.actions'
Línea 6... Línea 6...
6
import useFetch from './useFetch'
6
import useFetch from './useFetch'
7
 
7
 
8
export default function usePosts(postUrl) {
8
export function usePosts(postUrl) {
Línea 9... Línea 9...
9
  const { data: post, isLoading, mutate } = useFetch(postUrl)
9
  const { data: post, isLoading, mutate } = useFetch(postUrl)