Skip to content

fix: useFundCardSetupOnrampEventListeners unmount reset #2182

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

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

Conversation

teimurjan
Copy link
Contributor

What changed? Why?

Updated cleanup of useFundCardSetupOnrampEventListeners on unmount. Currently, if the provider unmounts within 3000ms after an action, state mutation happens on an unmounted provider.

Notes to reviewers

How has it been tested?

Copy link

vercel bot commented Mar 28, 2025

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

Name Status Preview Comments Updated (UTC)
onchainkit-coverage ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 12, 2025 6:54am
onchainkit-routes ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 12, 2025 6:54am

Copy link

vercel bot commented Mar 28, 2025

@teimurjan is attempting to deploy a commit to the Coinbase Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Contributor

@dgca dgca left a comment

Choose a reason for hiding this comment

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

Ty for the PR! Definitely an issue that should be fixed. I think we might still the issue with the proposed changes in certain circumstances. Let me know what you think 👍

@dgca
Copy link
Contributor

dgca commented Apr 25, 2025

@teimurjan Heyo, sorry for all the back and forth but now it looks like the test coverage is under 100%. We need it at 100% to merge. Btw, you can check that locally by doing pnpm f:ock test:coverage

@teimurjan
Copy link
Contributor Author

@teimurjan Heyo, sorry for all the back and forth but now it looks like the test coverage is under 100%. We need it at 100% to merge. Btw, you can check that locally by doing pnpm f:ock test:coverage

I get it. I've just committed a fix with a new test checking the missing lines.

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.

2 participants