streamich/react-use

Remove warnings from `useDeepCompareEffect`

Offen

#755 geöffnet am 06.11.2019

 (8 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)TypeScript (3.273 Forks)batch import
buggood first issuehelp wanted

Repository-Metriken

Stars
 (43.979 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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.

Contributor Guide