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

fix: List cache with different keys returns same result #10939

Open memoyil opened 2 weeks ago

memoyil commented 2 weeks ago

PR-Codex overview

This PR focuses on enhancing the type safety and immutability of token-related data structures in the @pancakeswap/tokens package by exporting the createEmptyList function and updating the return types of EMPTY_LIST and createEmptyList.

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)
aptos-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 13, 2024 10:03am
gamification ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 13, 2024 10:03am
web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 13, 2024 10:03am
4 Skipped Deployments | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **blog** | ⬜️ Ignored ([Inspect](https://vercel.com/pancakeswap/blog/9DyRz28d2UKa9S7iAbUSgrZoDyv5)) | [Visit Preview](https://blog-git-feature-fixlistcachewithdifferentkeys.pancake.run) | | Nov 13, 2024 10:03am | | **bridge** | ⬜️ Ignored ([Inspect](https://vercel.com/pancakeswap/bridge/HK4NNw3wfvemYh6wD2VFv3vduZTV)) | [Visit Preview](https://bridge-git-feature-fixlistcachewithdifferentkeys.pancake.run) | | Nov 13, 2024 10:03am | | **games** | ⬜️ Ignored ([Inspect](https://vercel.com/pancakeswap/games/5eFtNQeJoghKW4Qx2aQThM6q67AC)) | [Visit Preview](https://games-git-feature-fixlistcachewithdifferentkeys.pancake.run) | | Nov 13, 2024 10:03am | | **uikit** | ⬜️ Ignored ([Inspect](https://vercel.com/pancakeswap/uikit/FgUk26ptLaRiSPdj6Tr1c8JWemNt)) | [Visit Preview](https://uikit-git-feature-fixlistcachewithdifferentkeys.pancake.run) | | Nov 13, 2024 10:03am |
changeset-bot[bot] commented 2 weeks ago

⚠️ No Changeset found

Latest commit: 4f2e59104105dedada8099edbb594cfa7959c45f

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