streamich/react-use

Remove warnings from `useDeepCompareEffect`

Open

#755 aperta il 6 nov 2019

Vedi su GitHub
 (8 commenti) (0 reazioni) (0 assegnatari)TypeScript (3273 fork)batch import
buggood first issuehelp wanted

Metriche repository

Star
 (43.979 star)
Metriche merge PR
 (Merge medio 1743g 9h) (1 PR mergiata in 30 g)

Descrizione

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.

Guida contributor