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

How to listen the onClose event of popup? #77

Closed
qinhua opened this issue Oct 16, 2024 · 5 comments
Closed

How to listen the onClose event of popup? #77

qinhua opened this issue Oct 16, 2024 · 5 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@qinhua
Copy link

qinhua commented Oct 16, 2024

I need to reset certain states when the CCC pop-up window closes, but after reviewing the documentation and source code, I couldn't find the relevant configuration items

@Hanssen0
Copy link
Member

Hi!
Which package are you using? @ckb-ccc/connector or @ckb-ccc/connector-react?

@qinhua
Copy link
Author

qinhua commented Oct 17, 2024

Hi! Which package are you using? @ckb-ccc/connector or @ckb-ccc/connector-react?

@ckb-ccc/connector-react

@Hanssen0
Copy link
Member

@ckb-ccc/connector-react

I got you. Currently, the component in this package doesn't provide the state of opening. Please check #78 and see if the new properties returned from the useCCC hook meet your needs.

@Hanssen0 Hanssen0 added enhancement New feature or request good first issue Good for newcomers labels Oct 17, 2024
@qinhua
Copy link
Author

qinhua commented Oct 17, 2024

@ckb-ccc/connector-react

I got you. Currently, the component in this package doesn't provide the state of opening. Please check #78 and see if the new properties returned from the useCCC hook meet your needs.

Enough, so I can do it by listening isOpen 👍🏻👍🏻👍🏻

@Hanssen0
Copy link
Member

Added in the @ckb-ccc/connector-react version 0.0.17-alpha.7, see #79

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants