You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just to let you know, i have a use case for the unsafe_context referenced in the code above.
I have a project with ThreeJS, using @react-three/fiber, and @react-three/drei. I have a Camera wich stores it's position in the URL.
But in react-three/fiber you have to render in a special component with webgl, apparently you lose all other Context, even if the Canvas is wrapped. So i the useContextBridge to import the react-router context into the Canvas.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
react-router/packages/react-router-dom/index.tsx
Line 114 in 0f9435a
Just to let you know, i have a use case for the unsafe_context referenced in the code above.
I have a project with ThreeJS, using @react-three/fiber, and @react-three/drei. I have a
Camera
wich stores it's position in the URL.But in react-three/fiber you have to render in a special component with webgl, apparently you lose all other Context, even if the Canvas is wrapped. So i the useContextBridge to import the react-router context into the Canvas.
Beta Was this translation helpful? Give feedback.
All reactions