pancake-frontend icon indicating copy to clipboard operation
pancake-frontend copied to clipboard

fix: Rpc request increase

Open memoyil opened this issue 1 year ago • 2 comments


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 useQueryClient from @tanstack/react-query for cache management in multiple hooks
  • Replaced refetch with queryClient.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}

memoyil avatar Apr 16 '24 10:04 memoyil

⚠️ 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.

changeset-bot[bot] avatar Apr 16 '24 10:04 changeset-bot[bot]

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

vercel[bot] avatar Apr 16 '24 10:04 vercel[bot]

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]

View full report↗︎

socket-security[bot] avatar Apr 17 '24 11:04 socket-security[bot]

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Alert Package NoteSource
Filesystem access npm/[email protected]
Environment variable access npm/[email protected]
Filesystem access npm/[email protected]
Filesystem access npm/[email protected]
Filesystem access npm/[email protected]
Environment variable access npm/[email protected]
Environment variable access npm/[email protected]
Environment variable access npm/[email protected]
Environment variable access npm/[email protected]
Filesystem access npm/[email protected]
Filesystem access npm/[email protected]
Filesystem access npm/[email protected]
Filesystem access npm/[email protected]
Environment variable access npm/[email protected]
Filesystem access npm/[email protected]
Filesystem access npm/[email protected]
Filesystem access npm/[email protected]
Environment variable access npm/[email protected]
Filesystem access npm/[email protected]
Environment variable access npm/[email protected]
Filesystem access npm/[email protected]
Environment variable access npm/[email protected]
Filesystem access npm/[email protected]
Environment variable access npm/[email protected]
Filesystem access npm/[email protected]
Environment variable access npm/[email protected]
Environment variable access npm/[email protected]
Filesystem access npm/[email protected]
Filesystem access npm/[email protected]
Filesystem access npm/[email protected]
Filesystem access npm/[email protected]
Environment variable access npm/[email protected]
Filesystem access npm/[email protected]
Environment variable access npm/[email protected]
Environment variable access npm/[email protected]
Environment variable access npm/[email protected]
Filesystem access npm/[email protected]
Environment variable access npm/[email protected]
Filesystem access npm/[email protected]
Environment variable access npm/[email protected]
Environment variable access npm/[email protected]
Filesystem access npm/[email protected]
Environment variable access npm/[email protected]
Filesystem access npm/[email protected]
Environment variable access npm/[email protected]
Filesystem access npm/[email protected]
Mild CVE npm/[email protected]
Deprecated npm/[email protected]
  • Reason: request has been deprecated, see https://github.com/request/request/issues/3142
Environment variable access npm/[email protected]
Filesystem access npm/[email protected]
Environment variable access npm/[email protected]
Filesystem access npm/[email protected]
Environment variable access npm/[email protected]
Environment variable access npm/[email protected]
Filesystem access npm/[email protected]
Deprecated npm/[email protected]
  • Reason: this library is no longer supported
Environment variable access npm/[email protected]
Environment variable access npm/[email protected]
Environment variable access npm/[email protected]
Filesystem access npm/[email protected]
Environment variable access npm/[email protected]
Environment variable access npm/[email protected]
Environment variable access npm/[email protected]
Environment variable access npm/[email protected]
Environment variable access npm/[email protected]
Environment variable access npm/[email protected]
Environment variable access npm/[email protected]
Filesystem access npm/[email protected]

socket-security[bot] avatar Apr 17 '24 11:04 socket-security[bot]