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

fix(forwardRef): forward connect(), disconnect() and connected from VncScreen #20

Merged
merged 3 commits into from
Feb 19, 2022

Conversation

roerohan
Copy link
Owner

The methods connect() and disconnect(), and the state variable connected have been exposed to the user of the library with the help of React's forwardRef and userImperativeHandle functions.

To demonstrate the usage of this, a button Connect / Disconnect was added to the demo application in App.tsx.

closes #18

@roerohan roerohan merged commit 9392ab3 into main Feb 19, 2022
@roerohan roerohan deleted the fix/forward-ref branch February 19, 2022 14:20
github-actions bot pushed a commit that referenced this pull request Feb 19, 2022
## [0.2.9](v0.2.8...v0.2.9) (2022-02-19)

### Bug Fixes

* **forwardRef:** forward connect(), disconnect() and connected from VncScreen ([#20](#20)) ([9392ab3](9392ab3))

skip-checks: true
@github-actions
Copy link
Contributor

🎉 This PR is included in version 0.2.9 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

How to disconnect a session ?
1 participant