-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apply routing fixes in browser #179
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
import { Route, Routes, RoutesConfig } from "@argent/stack-router" | ||
import { Route, RoutesConfig } from "@argent/stack-router" | ||
import { chakra } from "@chakra-ui/react" | ||
import { FC, ReactNode, isValidElement, useMemo } from "react" | ||
// import { Outlet, Route, Routes } from "react-router-dom" // reinstate in case of issues with @argent/stack-router | ||
import { Outlet, useLocation } from "react-router-dom" | ||
import {Routes} from "react-router-dom" // import Routes from react-router-dom | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
What kind of error did you get with importing |
||
import { useAppState } from "./app.state" | ||
import { ResponsiveBox } from "./components/Responsive" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { StrictMode } from "react" | ||
import { createRoot } from "react-dom/client" | ||
import { BrowserRouter } from "react-router-dom" | ||
import { BrowserRouter, HashRouter } from "react-router-dom" | ||
|
||
import { initUiExtensionCloseListener } from "../shared/analytics" | ||
import { | ||
|
@@ -33,8 +33,8 @@ const root = createRoot(container) | |
|
||
root.render( | ||
<StrictMode> | ||
<BrowserRouter> | ||
<HashRouter> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Could you please give me a bit more info about the issue? Do you mean refreshing the extension wallet? |
||
<App /> | ||
</BrowserRouter> | ||
</HashRouter> | ||
</StrictMode>, | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix! 👍
Can we set an explicit version here instead of
latest
?