streamich/react-use

Remove warnings from `useDeepCompareEffect`

Open

#755 opened on 2019年11月6日

GitHub で見る
 (8 comments) (0 reactions) (0 assignees)TypeScript (3,273 forks)batch import
buggood first issuehelp wanted

Repository metrics

Stars
 (43,979 stars)
PR merge metrics
 (平均マージ 1743d 9h) (30d で 1 merged PR)

説明

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.

コントリビューターガイド