Skip to content

Embedding ReactXR in a Route/Tab #279

Answered by CodyJasonBennett
Oba-One asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, you can only have one session active in a browser at a time on some platforms. I'd see https://developer.mozilla.org/en-US/docs/Web/API/WebXR_Device_API/Startup_and_shutdown#ending_the_webxr_session.

const { session } = useXR()
await session.end()

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Oba-One
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants