feat: react doctor for remove useMemo and useCallback - #5748
Conversation
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Greptile SummaryRefactors React components and hooks to calculate derived values directly during rendering instead of wrapping them in
Confidence Score: 5/5The PR appears safe to merge because the removed memoization does not alter reachable behavior, state ownership, transaction logic, or external contracts. Table sorting remains controlled or mount-initialized, form schemas continue receiving equivalent numeric limits, and query keys normalize derived arrays by content rather than reference identity.
|
| Filename | Overview |
|---|---|
| apps/evm/src/hooks/useGetSwapInfo/useGetTokenCombinations.ts | Removes memoization from the base-token filter while preserving token combinations and normalized PancakeSwap query keys. |
| apps/evm/src/containers/Layout/NavBar/ClaimRewardsButton/useGetGroups.ts | Computes internal and external reward groups directly during rendering without changing their contents or claim construction. |
| apps/evm/src/pages/Vai/Borrow/useForm/index.ts | Computes converted VAI limits directly while preserving schema validation and React Hook Form behavior. |
| apps/evm/src/pages/Vai/Repay/useForm/index.ts | Removes memoization from wallet-balance conversion without changing repayment limits or validation. |
| apps/evm/src/pages/PrimeLeaderboard/RewardTable/index.tsx | Recreates reward-token columns during rendering while retaining controlled sorting and stable row reconciliation. |
| apps/evm/src/components/Table/TableCards/index.tsx | Derives sorting options directly without affecting table ordering state or selection behavior. |
Reviews (1): Last reviewed commit: "feat: remove usememo" | Re-trigger Greptile
Jira ticket(s)
VPD-1691
Changes