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.

贡献者指南