pancake-frontend
pancake-frontend copied to clipboard
fix: Rpc request increase
PR-Codex overview
This PR focuses on integrating @tanstack/react-query for cache management in various hooks across different views and components.
Detailed summary
- Added
useQueryClientfrom@tanstack/react-queryfor cache management in multiple hooks - Replaced
refetchwithqueryClient.invalidateQueries({ queryKey })in useEffect for cache invalidation - Updated dependencies and imports for cache management
The following files were skipped due to too many changes:
apps/web/src/views/Farms/hooks/useFetchOraclePrice.ts,apps/web/src/views/CakeStaking/hooks/useVeCakeUserCreditWithTime.ts,apps/web/src/views/CakeStaking/hooks/useProxyVeCakeBalanceOfAtTime.ts,apps/web/src/state/user/hooks/index.tsx,apps/web/src/hooks/useTokenBalance.ts,apps/gamification/hooks/useTokenBalance.ts
✨ Ask PR-Codex anything about this PR by commenting with
/codex {your question}
⚠️ No Changeset found
Latest commit: 7997737de500401e21de2ea695f625f66d633b97
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.
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
💥 An error occurred when fetching the changed packages and changesets in this PR
Some errors occurred when validating the changesets config:
The package "gamification" depends on the ignored package "@pancakeswap/ui-wallets", but "gamification" is not being ignored. Please add "gamification" to the `ignore` option.
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 | Apr 17, 2024 2:37pm |
5 Ignored Deployments
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| aptos-web | ⬜️ Ignored (Inspect) | Visit Preview | Apr 17, 2024 2:37pm | |
| blog | ⬜️ Ignored (Inspect) | Visit Preview | Apr 17, 2024 2:37pm | |
| bridge | ⬜️ Ignored (Inspect) | Visit Preview | Apr 17, 2024 2:37pm | |
| games | ⬜️ Ignored (Inspect) | Visit Preview | Apr 17, 2024 2:37pm | |
| uikit | ⬜️ Ignored (Inspect) | Visit Preview | Apr 17, 2024 2:37pm |
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
| Package | New capabilities | Transitives | Size | Publisher |
|---|---|---|---|---|
| npm/[email protected] | eval | +2 |
962 kB | esp |
| npm/[email protected] | None | 0 |
63.9 kB | mikemcl |
| npm/[email protected] | eval | 0 |
629 kB | sgrondin |
| npm/[email protected] | None | 0 |
5.67 kB | lukeed |
| npm/[email protected] | None | 0 |
487 kB | evanvosberg |
| npm/[email protected] | None | 0 |
1.22 MB | faddee |
| npm/[email protected] | None | 0 |
31.2 kB | tehshrike |
| npm/[email protected] | Transitive: network | +37 |
16.5 MB | ricmoo |
| npm/[email protected] | None | 0 |
38 kB | lpinca |
| npm/[email protected] | None | 0 |
17 kB | esp |
| npm/[email protected] | None | 0 |
1.41 MB | bnjmnt4n |
| npm/[email protected] | None | 0 |
241 kB | ljharb |
| npm/[email protected] | environment | +3 |
4.62 MB | gnoff |
| npm/[email protected] | environment | 0 |
24.8 kB | gaearon |
| npm/[email protected] | environment | +2 |
337 kB | gnoff |
🚮 Removed packages: npm/@0xsquid/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@binance/[email protected], npm/@binance/[email protected], npm/@binance/[email protected], npm/@blocto/[email protected], npm/@changesets/[email protected], npm/@cloudflare/[email protected], npm/@cyberlab/[email protected], npm/@datadog/[email protected], npm/@datadog/[email protected], npm/@gelatonetwork/[email protected], npm/@gnosis.pm/[email protected], npm/@layerzerolabs/[email protected], npm/@material-ui/[email protected], npm/@msafe/[email protected], npm/@next/[email protected], npm/@next/[email protected], npm/@orbs-network/[email protected], npm/@orbs-network/[email protected], npm/@pancakeswap/[email protected], npm/@pancakeswap/[email protected], npm/@pancakeswap/[email protected], npm/@pancakeswap/[email protected], npm/@pancakeswap/[email protected], npm/@pancakeswap/[email protected], npm/@pancakeswap/[email protected], npm/@pancakeswap/[email protected], npm/@pancakeswap/[email protected], npm/@pancakeswap/[email protected], npm/@pancakeswap/[email protected], npm/@pancakeswap/[email protected], npm/@pancakeswap/[email protected], npm/@pancakeswap/[email protected], npm/@pancakeswap/[email protected], npm/@pancakeswap/[email protected], npm/@pancakeswap/[email protected], npm/@pancakeswap/[email protected], npm/@pancakeswap/[email protected], npm/@popperjs/[email protected], npm/@pythnetwork/[email protected], npm/@radix-ui/[email protected], npm/@radix-ui/[email protected], npm/@reduxjs/[email protected], npm/@sentry/[email protected], npm/@snapshot-labs/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@styled-system/[email protected], npm/@stylelint/[email protected], npm/@tanstack/[email protected], npm/@testing-library/[email protected], npm/@testing-library/[email protected], npm/@testing-library/[email protected], npm/@testing-library/[email protected]
🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎
To accept the risk, merge this PR and you will not be notified again.