We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59dbeb2 commit 686b277Copy full SHA for 686b277
packages/react/xr/src/xr.tsx
@@ -145,9 +145,10 @@ export function useXRStore() {
145
}
146
147
/**
148
- * Hook for getting the xr store from context. If not available `undefined` is returned.
+ * 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.
150
*/
-export function useXRStoreSafe() {
151
+export function UNSAFE_useXRStore() {
152
const store = useContext(xrContext)
153
return store
154
0 commit comments