Closed BaggioGiacomo closed 1 year ago
Use something like this :
import { useNavigate } from "@shopify/app-bridge-react"
const navigate = useNavigate()
<Link onClick={() => { navigate(`/funnel/${id}/analytics`) }} >
<Button>
<Icon source={AnalyticsMinor} color="base" />
</Button>
</Link>
PS: This is React Code.
This was fixed by Shopify. I think they have pushed something wrong on the app-bridge code base. After some days, it has been fixed automatically
Is it fixed? I have same issue
@neok yes, it was fixed some days after I've opened this issue.
Describe the bug
I've implemented the navigation menu like this:
The
Link
is fromreact-router-dom
. When I click on one of the links, I get fully redirected to its path, making a bad user experience since the merchant has to wait some seconds before seeing the new page.To Reproduce
Steps to reproduce the behaviour:
Expected behaviour
I expect to get redirected immediately, without page reloading. (~ a week ago it works correctly)
Contextual information
Packages and versions
List the relevant packages you’re using, and their versions. For example:
Platform
Additional context
I've created my app using the ruby template