Reactjs – React BrowserContext is lost in sub-sub-children
I have a Browser Context set up like this: ReactDOM.createRoot(document.getElementById('root')!).render( <React.StrictMode> <BrowserRouter> <ErrorBoundary FallbackComponent={CustomError}> <App /> </ErrorBoundary> </BrowserRouter> </React.StrictMode>, ) and the app component is like this: export const App = () => { if (isDevEnv()) { const navigate =…