Skip to content

Conversation

EvanReinstein
Copy link
Contributor

Cleans up a few stray issues in sdkContext.tsx and utils.ts. Slightly refactors the PayPal and Venmo buttons to prevent new sessions from being created.

@EvanReinstein EvanReinstein requested a review from a team as a code owner September 17, 2025 14:24
return () => {
if (
paypalSession.current &&
typeof paypalSession.current.destroy === "function"
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we have to do this check? I would assume destroy always exists if the paypalSession exists?

return () => {
if (
venmoSession.current &&
typeof venmoSession.current.destroy === "function"
Copy link
Contributor

Choose a reason for hiding this comment

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

Same question here

paymentSessionOptions,
);
}
}, [sdkInstance, paymentSessionOptions]);
Copy link
Contributor

Choose a reason for hiding this comment

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

We would like to re-initialize the session if paymentSessionOptions changes right?

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

Successfully merging this pull request may close these issues.

3 participants