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: Pcsx user settings not considered reset and not disabled on first click #10874

Closed memoyil closed 1 month ago

memoyil commented 1 month ago

Issues:

If pcsx feature enabled and there is no user setting, disabling it not make reset button appear.

Disabling the pcsx feature not work on first click and it has to be clicked again


PR-Codex overview

This PR focuses on enhancing the usePCSX hook and related state management in the smartRouter module by adding a reset functionality and improving the handling of user preferences.

Detailed summary

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

vercel[bot] commented 1 month 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 Oct 25, 2024 9:19am
6 Skipped Deployments | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **aptos-web** | ⬜️ Ignored ([Inspect](https://vercel.com/pancakeswap/aptos-web/GYCqywUf6MsLZXLt6w5TiLCGhZN1)) | | | Oct 25, 2024 9:19am | | **blog** | ⬜️ Ignored ([Inspect](https://vercel.com/pancakeswap/blog/6f6QuwHMRpDS2LSwyAAsyNNcpHQz)) | | | Oct 25, 2024 9:19am | | **bridge** | ⬜️ Ignored ([Inspect](https://vercel.com/pancakeswap/bridge/5LWZREbD3aNA4qUcVxusLxG7Ps9j)) | | | Oct 25, 2024 9:19am | | **games** | ⬜️ Ignored ([Inspect](https://vercel.com/pancakeswap/games/BZkiWZ81B6eqRDefMG4XwbXH5qXV)) | | | Oct 25, 2024 9:19am | | **gamification** | ⬜️ Ignored ([Inspect](https://vercel.com/pancakeswap/gamification/9Nnro4KrJ63S79sYvKKdUzXmLn4Z)) | | | Oct 25, 2024 9:19am | | **uikit** | ⬜️ Ignored ([Inspect](https://vercel.com/pancakeswap/uikit/AETTBijR7s4U71WzNryZermmBFft)) | | | Oct 25, 2024 9:19am |
changeset-bot[bot] commented 1 month ago

⚠️ No Changeset found

Latest commit: 6566a539ff66872833eab44128d865d76c5091bd

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