CodeChefVIT / CodeChefVIT/papers-codechef

unnecessary params in useEffect dependencies in filterContent.tsx

オープン
#462 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
20
フォーク
64
PR マージ指標
30日以内にマージされた PR はありません

説明

according to [official react documentation](https://react.dev/reference/react/useState?utm_source=chatgpt.com)

"The set function has a stable identity, so you will often see it omitted from Effect dependencies, but including it will not cause the Effect to fire. If the linter lets you omit a dependency without errors, it is safe to do."

so lines 217:227 needs to be reassessed

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。