Skip to content

Commit

Permalink
Revert "fix(XR): purge session cache on exit (#188)"
Browse files Browse the repository at this point in the history
This reverts commit 767a8fd.
  • Loading branch information
CodyJasonBennett committed Sep 28, 2022
1 parent 767a8fd commit 1e0bda4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/XR.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@ function XR({
}
const handleSessionEnd = (nativeEvent: XRManagerEvent) => {
set(() => ({ isPresenting: false, session: null }))
globalSessionStore.setState(() => ({ session: null }))
onSessionEnd?.({ nativeEvent: { ...nativeEvent, target: session }, target: session })
}
const handleVisibilityChange = (nativeEvent: XRSessionEvent) => {
Expand Down

0 comments on commit 1e0bda4

Please sign in to comment.