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.56k forks source link

feat: Add debounce and abort signal to position manager, make calls per chain instead of per gauge #10906

Closed memoyil closed 3 weeks ago

memoyil commented 3 weeks ago

PR-Codex overview

This PR focuses on enhancing the fetchPositionManager and getPositionManagerName functions to support cancellation through AbortSignal. It also updates the useQuery hooks in various components to utilize these changes, improving error handling and performance.

Detailed summary

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

changeset-bot[bot] commented 3 weeks ago

⚠️ No Changeset found

Latest commit: fb3f96fe805096fda4e0611e0fabbba43e01db12

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

vercel[bot] commented 3 weeks ago

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

Name Status Preview Comments Updated (UTC)
web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 4, 2024 9:03am
6 Skipped Deployments | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **aptos-web** | ⬜️ Ignored ([Inspect](https://vercel.com/pancakeswap/aptos-web/9mfzyciKmnr5BF6Z4JmhKrYivaUH)) | [Visit Preview](https://aptos-web-git-feature-featadddebounceabortsignaltopositi-595033.pancake.run) | | Nov 4, 2024 9:03am | | **blog** | ⬜️ Ignored ([Inspect](https://vercel.com/pancakeswap/blog/HwTpBoXye1XgcpLvvfZ5qGZhD4QB)) | [Visit Preview](https://blog-git-feature-featadddebounceabortsignaltopositionmanager.pancake.run) | | Nov 4, 2024 9:03am | | **bridge** | ⬜️ Ignored ([Inspect](https://vercel.com/pancakeswap/bridge/GrnVFzo71Q8wGczkUBuvD2hyzXEm)) | [Visit Preview](https://bridge-git-feature-featadddebounceabortsignaltopositionmanager.pancake.run) | | Nov 4, 2024 9:03am | | **games** | ⬜️ Ignored ([Inspect](https://vercel.com/pancakeswap/games/FqFaDXUytmQGwiTGVeRbi29swnv3)) | [Visit Preview](https://games-git-feature-featadddebounceabortsignaltopositionmanager.pancake.run) | | Nov 4, 2024 9:03am | | **gamification** | ⬜️ Ignored ([Inspect](https://vercel.com/pancakeswap/gamification/6Mr3oAKYtmcX4XMiqMnFgVJFEoPu)) | [Visit Preview](https://gamification-git-feature-featadddebounceabortsignaltopos-acd1c9.pancake.run) | | Nov 4, 2024 9:03am | | **uikit** | ⬜️ Ignored ([Inspect](https://vercel.com/pancakeswap/uikit/ECXPaS1ApvgK4GfRuXmZRWuzjJxz)) | [Visit Preview](https://uikit-git-feature-featadddebounceabortsignaltopositionmanager.pancake.run) | | Nov 4, 2024 9:03am |