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

feat: expose utilities for headless button creation #238

Merged
merged 4 commits into from
Feb 4, 2023

Conversation

saitonakamura
Copy link
Collaborator

@saitonakamura saitonakamura commented Jan 25, 2023

Our usecase is that we don't use <VRButton /> because we don't use react-dom at all, but we still want to integrate with react-xr state and keep it in sync. Previously we just handled our own state, but that lead to a bunch of bugs when someone used useXR for the data that was out of sync. So I came with this utilities that allows to create your own headless button in any way you desire. @CodyJasonBennett what do you think?

  • api
  • docs

@saitonakamura saitonakamura changed the title wip Expose utilities for headless button creation Jan 25, 2023
@saitonakamura saitonakamura marked this pull request as ready for review February 1, 2023 15:45
@CodyJasonBennett CodyJasonBennett changed the title Expose utilities for headless button creation feat: expose utilities for headless button creation Feb 4, 2023
@CodyJasonBennett CodyJasonBennett merged commit 8f9eda2 into pmndrs:master Feb 4, 2023
@saitonakamura saitonakamura deleted the xr-button-headless branch February 4, 2023 16:32
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.

2 participants