Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 755 Rev 756
Línea 36... Línea 36...
36
    label: 'Me divierte'
36
    label: 'Me divierte'
37
  }
37
  }
38
]
38
]
Línea 39... Línea 39...
39
 
39
 
-
 
40
export default function withReactions(Component) {
-
 
41
  console.log('Re render function')
40
export default function withReactions(Component) {
42
 
41
  const HOC = ({
43
  const HOC = ({
42
    saveUrl = '',
44
    saveUrl = '',
43
    deleteUrl = '',
45
    deleteUrl = '',
44
    currentReaction = null,
46
    currentReaction = null,
45
    onSelect = () => null
47
    onSelect = () => null
46
  }) => {
48
  }) => {
47
    const [reaction, setReaction] = useState(null)
49
    const [reaction, setReaction] = useState(null)
Línea -... Línea 50...
-
 
50
    const dispatch = useDispatch()
-
 
51
 
48
    const dispatch = useDispatch()
52
    console.log('Re render component')
49
 
53
 
50
    const saveReaction = useCallback(
54
    const saveReaction = useCallback(
51
      (type) => {
55
      (type) => {