streamich/react-use

Remove warnings from `useDeepCompareEffect`

開放

#755 建立於 2019年11月6日

 (8 則留言) (0 個反應) (0 位負責人)TypeScript (3,273 個分叉)batch import
buggood first issuehelp wanted

倉庫指標

星標
 (43,979 顆星)
PR 合併指標
 (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.

貢獻者指南