streamich/react-use

Remove warnings from `useDeepCompareEffect`

Open

#755 建立於 2019年11月6日

在 GitHub 查看
 (8 留言) (0 反應) (0 負責人)TypeScript (3,273 fork)batch import
buggood first issuehelp wanted

倉庫指標

Star
 (43,979 star)
PR 合併指標
 (平均合併 1743天 9小時) (30 天內合併 1 個 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.

貢獻者指南