-
Notifications
You must be signed in to change notification settings - Fork 70
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
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
useEffect(() => { | ||
if (!testFlags.showNewDepositFlow) return; |
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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
303788a
to
5083ca4
Compare
@@ -87,14 +87,14 @@ export const useTransfers = () => { | |||
const debouncedAmountBN = useMemo(() => MustBigNumber(debouncedAmount), [debouncedAmount]); | |||
|
|||
const chainsQuery = useQuery({ | |||
queryKey: ['transferEligibleChains', skipClientId], | |||
queryKey: ['transferEligibleChains'], |
There was a problem hiding this comment.
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
this upgrades our version of SkipClient to 0.15.5 and also updates our usage of it