pancakeswap / pancake-frontend

:pancakes: Pancake main features (farms, pools, IFO, lottery, profiles)
https://pancakeswap.finance
GNU General Public License v3.0
2.7k stars 3.55k forks source link

perf: Memoize currency arrays for balances hooks to avoid json stringify #10933

Open memoyil opened 2 weeks ago

memoyil commented 2 weeks ago

PR-Codex overview

This PR primarily focuses on removing the allowFailure: true option from multiple multicall invocations across various files and optimizing the usage of useMemo for filtering token balances in several components.

Detailed summary

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

vercel[bot] commented 2 weeks ago

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

Name Status Preview Comments Updated (UTC)
gamification ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 10, 2024 7:38am
web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 10, 2024 7:38am
5 Skipped Deployments | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **aptos-web** | ⬜️ Ignored ([Inspect](https://vercel.com/pancakeswap/aptos-web/7jBRijZcXBRqzr6jPjYdVAoYV5Z9)) | [Visit Preview](https://aptos-web-git-feature-perfmemoizecurrenciesforbalanceshooks.pancake.run) | | Nov 10, 2024 7:38am | | **blog** | ⬜️ Ignored ([Inspect](https://vercel.com/pancakeswap/blog/Aa6H9ac82thXqjYUJXDyt89vSD5s)) | [Visit Preview](https://blog-git-feature-perfmemoizecurrenciesforbalanceshooks.pancake.run) | | Nov 10, 2024 7:38am | | **bridge** | ⬜️ Ignored ([Inspect](https://vercel.com/pancakeswap/bridge/JBvPJw9jpxghLuF3yGj42yPPXhTU)) | [Visit Preview](https://bridge-git-feature-perfmemoizecurrenciesforbalanceshooks.pancake.run) | | Nov 10, 2024 7:38am | | **games** | ⬜️ Ignored ([Inspect](https://vercel.com/pancakeswap/games/C6WNQhGgymo2UPtNc9znREJybmAj)) | [Visit Preview](https://games-git-feature-perfmemoizecurrenciesforbalanceshooks.pancake.run) | | Nov 10, 2024 7:38am | | **uikit** | ⬜️ Ignored ([Inspect](https://vercel.com/pancakeswap/uikit/CA52j8uu3U1FRSvswnhQDjJm4bjb)) | [Visit Preview](https://uikit-git-feature-perfmemoizecurrenciesforbalanceshooks.pancake.run) | | Nov 10, 2024 7:38am |
changeset-bot[bot] commented 2 weeks ago

⚠️ No Changeset found

Latest commit: 1a31267203e2c90fc86c83a89c15a64195604153

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR