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

[NO CHANGELOG] Orchestrates Swap/Bridge widgets for Smart Checkout routes #1040

Merged
merged 15 commits into from
Oct 25, 2023

Conversation

jwhardwick
Copy link
Contributor

Summary

  • adds swap/bridge widget integration with network switching and event capture
Smart.Checkout.swap.+.execute.flow.mov

@jwhardwick jwhardwick marked this pull request as ready for review October 20, 2023 04:59
@jwhardwick jwhardwick requested a review from a team as a code owner October 20, 2023 04:59
@jwhardwick jwhardwick changed the title Gpr 238/widget integration [NO CHANGELOG] Orchestrates Swap/Bridge widgets for Smart Checkout routes Oct 24, 2023
@jhesgodi jhesgodi self-requested a review October 24, 2023 23:29
@@ -27,20 +27,20 @@ export function FundWithSmartCheckout({ subView }: FundWithSmartCheckoutProps) {

const { querySmartCheckout, fundingRoutes } = useSaleContext();

let smartCheckoutLoading = false;
const smartCheckoutLoading = useRef(false);
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

@jwhardwick jwhardwick Oct 25, 2023

Choose a reason for hiding this comment

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

This one is because of useEffect double rendering, calling SmartCheckout twice in rapid succession causes them both to fail so had to prevent that in dev, not needed in prod though. Is it okay to keep in for now?

@jwhardwick jwhardwick merged commit bf8b6d2 into main Oct 25, 2023
6 checks passed
@jwhardwick jwhardwick deleted the GPR-238/widget-integration branch October 25, 2023 03:22
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.

None yet

4 participants