streamich/react-use

Remove warnings from `useDeepCompareEffect`

オープン

#755 opened on 2019/11/06

 (8 件のコメント) (0 件のリアクション) (0 人の担当者)TypeScript (3,273 件のフォーク)batch import
buggood first issuehelp wanted

Repository metrics

Stars
 (43,979 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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.

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