Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 1734 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1734 Rev 1759
Línea 9... Línea 9...
9
  const [currentConversation, setCurrentConversation] = useState(null)
9
  const [currentConversation, setCurrentConversation] = useState(null)
10
  const [loading, setLoading] = useState(false)
10
  const [loading, setLoading] = useState(false)
11
  const dispatch = useDispatch()
11
  const dispatch = useDispatch()
Línea 12... Línea 12...
12
 
12
 
-
 
13
  function getDiff(arr1 = [], arr2 = []) {
13
  function getDiff(arr1 = [], arr2 = []) {
14
    if (arr1.length !== arr2.length) return true
14
    const set = new Set(arr1.map((obj) => obj.uuid))
15
    const set = new Set(arr1.map((obj) => obj.uuid))
15
    return !arr2.every((obj) => set.has(obj.uuid))
16
    return !arr2.every((obj) => set.has(obj.uuid))
Línea 16... Línea 17...
16
  }
17
  }