streamich/react-use

Remove warnings from `useDeepCompareEffect`

Open

#755 geöffnet am 6. Nov. 2019

Auf GitHub ansehen
 (8 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)TypeScript (43.979 Stars) (3.273 Forks)batch import
buggood first issuehelp wanted

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