streamich/react-use

Remove warnings from `useDeepCompareEffect`

Open

#755 ouverte le 6 nov. 2019

Voir sur GitHub
 (8 commentaires) (0 réactions) (0 assignés)TypeScript (43 979 stars) (3 273 forks)batch import
buggood first issuehelp wanted

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.

Guide contributeur