streamich/react-use

Remove warnings from `useDeepCompareEffect`

Aberta

#755 aberto em 6 de nov. de 2019

 (8 comentários) (0 reação) (0 responsável)TypeScript (3.273 forks)batch import
buggood first issuehelp wanted

Métricas do repositório

Stars
 (43.979 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

Is your feature request related to a problem? Please describe.

useDeepCompareEffect gives warnings when using it with primitive dependencies. This is frustrating for the common case where dependencies could either undefined or an object that you'd like to be deep-compared.

Describe the solution you'd like

Remove warnings from useDeepCompareEffect or provide a way to suppress warnings.

Guia do colaborador