Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: upgrade skip client to 0.15.5 #1368

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

tinaszheng
Copy link
Contributor

this upgrades our version of SkipClient to 0.15.5 and also updates our usage of it

@tinaszheng tinaszheng requested a review from a team as a code owner December 13, 2024 18:10
Copy link

vercel bot commented Dec 13, 2024

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

Name Status Preview Comments Updated (UTC)
v4-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 13, 2024 9:49pm
v4-testnet ❌ Failed (Inspect) Dec 13, 2024 9:49pm

useEffect(() => {
if (!testFlags.showNewDepositFlow) return;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these queries don't need to be prefetched unless youre using the new deposit flow

// so any useQuery that uses the skipClient can use that id as a query key
// to ensure it has the most up-to-date skipClient
const { skipClient, skipClientId } = useMemo(
const { skipClient, skipInstanceId } = useMemo(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

renaming to be more accurate

@tinaszheng tinaszheng changed the base branch from main to tina/deposit-modal December 13, 2024 19:08
@@ -87,14 +87,14 @@ export const useTransfers = () => {
const debouncedAmountBN = useMemo(() => MustBigNumber(debouncedAmount), [debouncedAmount]);

const chainsQuery = useQuery({
queryKey: ['transferEligibleChains', skipClientId],
queryKey: ['transferEligibleChains'],
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new instance of the skip client shouldnt trigger a re-query here since these are agnostic to whatever chain or logged in state the user is in

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant