Skip to content

Commit 686b277

Browse files
committed
chore: discourage use
1 parent 59dbeb2 commit 686b277

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/react/xr/src/xr.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,10 @@ export function useXRStore() {
145145
}
146146

147147
/**
148-
* Hook for getting the xr store from context. If not available `undefined` is returned.
148+
* Returns the XR store object from a parent {@link XR} component. If no component is found `undefined` is returned.
149+
* You most likely should be using {@link useXRStore} instead.
149150
*/
150-
export function useXRStoreSafe() {
151+
export function UNSAFE_useXRStore() {
151152
const store = useContext(xrContext)
152153
return store
153154
}

0 commit comments

Comments
 (0)