-
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?
Conversation
@@ -14,7 +14,8 @@ | |||
"patch-package": "^6.4.7", | |||
"prettier": ">=2", | |||
"prettier-plugin-import-sort": "^0.0.7", | |||
"ts-node": "^10.8.1" | |||
"ts-node": "^10.8.1", | |||
"@chakra-ui/cli": "^latest" |
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
?
Yes sure
I tested with version 2.4.0 and it was more compatible than 2.4.1
Also look at the other fixes I sent in the description they're important too
…On Tue, Jan 23, 2024, 03:06 Hongchao Liu ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In package.json
<#179 (comment)>
:
> @@ -14,7 +14,8 @@
"patch-package": "^6.4.7",
"prettier": ">=2",
"prettier-plugin-import-sort": "^0.0.7",
- "ts-node": "^10.8.1"
+ "ts-node": "^10.8.1",
+ ***@***.***/cli": "^latest"
Thanks for the fix! 👍
Can we set an explicit version here instead of latest?
—
Reply to this email directly, view it on GitHub
<#179 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AT2YFTPUPOO2XGSH3A3L32LYP3ZYRAVCNFSM6AAAAABCDE346SVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTQMZXGU4TSNBUGU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Thanks! |
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 comment
The reason will be displayed to describe this comment to others. Learn more.
You have error with imported from @Argent
What kind of error did you get with importing Routes
from "@argent/stack-router"?
@@ -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 comment
The reason will be displayed to describe this comment to others. Learn more.
Routing in browser has a bug that on refresh the app lose the route
Could you please give me a bit more info about the issue? Do you mean refreshing the extension wallet?
When you extend the extension in the browser
when You refresh the page, the program can't get the account/tokens route
and user get lost
you can try with extending wallet in browser and refreshing the page
…On Tue, Jan 23, 2024, 14:32 Hongchao Liu ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In packages/extension/src/ui/index.tsx
<#179 (comment)>
:
> @@ -33,8 +33,8 @@ const root = createRoot(container)
root.render(
<StrictMode>
- <BrowserRouter>
+ <HashRouter>
Routing in browser has a bug that on refresh the app lose the route
Could you please give me a bit more info about the issue? Do you mean
refreshing the extension wallet?
—
Reply to this email directly, view it on GitHub
<#179 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AT2YFTNFSJSY577Z6YJQLALYP6KFPAVCNFSM6AAAAABCDE346SVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTQMZYGQ3TONJRGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
You get an error in the code
And I remember some time ago when you were changing the route and was
getting redirected to some pages the components didn't load and the page
was blank
…On Tue, Jan 23, 2024, 14:28 Hongchao Liu ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In packages/extension/src/ui/AppRoutes.tsx
<#179 (comment)>
:
> import { chakra } from ***@***.***/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
You have error with imported from @Argent <https://github.com/Argent>
What kind of error did you get with importing Routes from
***@***.***/stack-router"?
—
Reply to this email directly, view it on GitHub
<#179 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AT2YFTMNUID26T23FG4PHK3YP6JVVAVCNFSM6AAAAABCDE346SVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTQMZYGQ3DSNJZGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Tested it, nice fix 👍 |
How do I reproduce this error in the code? Steps i use to build:
|
Ok, I'll look into it.
…On Thu, Jan 25, 2024, 15:07 Hongchao Liu ***@***.***> wrote:
You get an error in the code And I remember some time ago when you were
changing the route and was getting redirected to some pages the components
didn't load and the page was blank
… <#m_4494558921543832491_m_6063890652486066888_>
On Tue, Jan 23, 2024, 14:28 Hongchao Liu *@*.*> wrote: @.** commented on
this pull request. ------------------------------ In
packages/extension/src/ui/AppRoutes.tsx <#179 (comment)
<#179 (comment)>>
: > import { chakra } from *@*.*/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 You have error with imported from @Argent
<https://github.com/Argent> https://github.com/Argent
<https://github.com/Argent> What kind of error did you get with importing
Routes from @.*/stack-router"? — Reply to this email directly, view it on
GitHub <#179 (review)
<#179 (review)>>,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AT2YFTMNUID26T23FG4PHK3YP6JVVAVCNFSM6AAAAABCDE346SVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTQMZYGQ3DSNJZGI
. You are receiving this because you were mentioned.Message ID: *@*.***>
How do I reproduce this error in the code?
The import works ok for me so I wanna figure out a way to verify your fix.
Steps i use to build:
yarn
yarn run build
—
Reply to this email directly, view it on GitHub
<#179 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AT2YFTI76VVXXBUCJ2VJCXDYQI7WTAVCNFSM6AAAAABCDE346SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBZHE4TENZTG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
You're welcome
…On Thu, Jan 25, 2024, 15:04 Hongchao Liu ***@***.***> wrote:
When you extend the extension in the browser when You refresh the page,
the program can't get the account/tokens route and user get lost you can
try with extending wallet in browser and refreshing the page
… <#m_2036684164093062916_>
On Tue, Jan 23, 2024, 14:32 Hongchao Liu *@*.*> wrote: @.** commented on
this pull request. ------------------------------ In
packages/extension/src/ui/index.tsx <#179 (comment)
<#179 (comment)>>
: > @@ -33,8 +33,8 @@ const root = createRoot(container) root.render( - +
Routing in browser has a bug that on refresh the app lose the route Could
you please give me a bit more info about the issue? Do you mean refreshing
the extension wallet? — Reply to this email directly, view it on GitHub <#179
(review)
<#179 (review)>>,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AT2YFTNFSJSY577Z6YJQLALYP6KFPAVCNFSM6AAAAABCDE346SVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTQMZYGQ3TONJRGA
. You are receiving this because you were mentioned.Message ID: *@*.***>
Tested it, nice fix 👍
—
Reply to this email directly, view it on GitHub
<#179 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AT2YFTJ5UPZUVUQ7Q4JSGOTYQI7LPAVCNFSM6AAAAABCDE346SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBZHE4DMMBRG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
BTW
do you need any Web3 Frontend dev in your team?
…On Thu, Jan 25, 2024, 15:29 Ali Azarian ***@***.***> wrote:
You're welcome
On Thu, Jan 25, 2024, 15:04 Hongchao Liu ***@***.***> wrote:
> When you extend the extension in the browser when You refresh the page,
> the program can't get the account/tokens route and user get lost you can
> try with extending wallet in browser and refreshing the page
> … <#m_591274396940063359_m_2036684164093062916_>
> On Tue, Jan 23, 2024, 14:32 Hongchao Liu *@*.*> wrote: @.** commented on
> this pull request. ------------------------------ In
> packages/extension/src/ui/index.tsx <#179 (comment)
> <#179 (comment)>>
> : > @@ -33,8 +33,8 @@ const root = createRoot(container) root.render( - +
> Routing in browser has a bug that on refresh the app lose the route Could
> you please give me a bit more info about the issue? Do you mean refreshing
> the extension wallet? — Reply to this email directly, view it on GitHub <#179
> (review)
> <#179 (review)>>,
> or unsubscribe
> https://github.com/notifications/unsubscribe-auth/AT2YFTNFSJSY577Z6YJQLALYP6KFPAVCNFSM6AAAAABCDE346SVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTQMZYGQ3TONJRGA
> . You are receiving this because you were mentioned.Message ID: *@*.***>
>
> Tested it, nice fix 👍
>
> —
> Reply to this email directly, view it on GitHub
> <#179 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AT2YFTJ5UPZUVUQ7Q4JSGOTYQI7LPAVCNFSM6AAAAABCDE346SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBZHE4DMMBRG4>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
|
AFAIK, not at the moment, might change in the future. We do have a grant program in case you are interested. You are welcome to join our discord channel, many dev related topics are discussed there. |
List of bugs :
1.Adding chackra-cli in packages.json
2.Routing in browser has a bug that on refresh the app lose the route
3.You have error with imported from @Argent