Skip to content

[fix] Suggestion: useEffect の依存関係を追加#443

Open
honyanya wants to merge 1 commit intoswfz:mainfrom
honyanya:feature/fix_use-effect
Open

[fix] Suggestion: useEffect の依存関係を追加#443
honyanya wants to merge 1 commit intoswfz:mainfrom
honyanya:feature/fix_use-effect

Conversation

@honyanya
Copy link
Copy Markdown
Contributor

Changed

下記の対応を実施

React Hook useEffect has a missing dependency: 'props.result'. Either include it or remove the dependency array. If 'setApiResult' needs the current value of 'props.result', you can also switch to useReducer instead of useState and read 'props.result' in the reducer.eslintreact-hooks/exhaustive-deps

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 27, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
tools ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 27, 2023 at 1:55PM (UTC)

Copy link
Copy Markdown
Owner

@swfz swfz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@honyanya ちょっとうろ覚えではあるけど、追加すると壊れるので追加していないって感じだった気がする
動作問題なかったですか?

@honyanya
Copy link
Copy Markdown
Contributor Author

honyanya commented Apr 3, 2023

軽く動作確認した感じは大丈夫そうでしたがもう少し詳細に動作確認見てみます

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants