Skip to content

Commit

Permalink
Merge pull request #394 from wrangelvid/session_mode
Browse files Browse the repository at this point in the history
useIsInSessionMode returns true by default only during active XR session
  • Loading branch information
bbohlender authored Feb 5, 2025
2 parents 7a057d4 + f758fc7 commit bce8b5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/xr/src/guard/session-mode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function useIsInSessionMode(
if (allow != null) {
return Array.isArray(allow) ? allow.includes(mode) : allow === mode
}
return true
return mode !== null
}

/**
Expand Down

0 comments on commit bce8b5f

Please sign in to comment.