Conversation
PR #485 Review: Add player self service delete pageOverall, this is a well-structured feature with good test coverage and clean component decomposition. A few items worth addressing: Code Quality
The check
The fetcher function is defined inside the hook body and recreated on every render. SWR does not use the fetcher reference as part of its cache key so this does not cause re-fetching, but it is unnecessarily wasteful. Since the fetcher has no closure dependencies, it should be defined at module scope outside the hook. Minor
In both components, the Security: No issues found. Potential Bugs: No issues found. Performance: No issues beyond the fetcher note above. |
eecf44d to
2ce0f5f
Compare
2ce0f5f to
6fd8d0e
Compare
c4e1d5b to
ad86876
Compare
ad86876 to
603b2c8
Compare
No description provided.