Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 6810 Rev 6814
Línea 1... Línea 1...
1
import { useEffect, useState } from 'react'
1
import { useEffect, useState } from 'react'
2
import { axios } from '../utils'
2
import { axios } from '../utils'
Línea 3... Línea 3...
3
 
3
 
4
const useFetchHelper = (helper = '', defaultValue = {}) => {
4
const useFetchHelper = (helper = '', defaultValue = []) => {
5
  const [data, setData] = useState(defaultValue)
5
  const [data, setData] = useState(defaultValue)
6
  const [loading, setLoading] = useState(false)
6
  const [loading, setLoading] = useState(false)
Línea 7... Línea 7...
7
  const [error, setError] = useState(null)
7
  const [error, setError] = useState(null)