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
Copy app.additional.tsx from the app/routes directory and paste two new files app.additional_1.tsx and app.additional_2.tsx
Change title attribute for <TitleBar> in app.additional_1.tsx to Additional page 1 and Additional page 2 for second page to see the difference when opening links
In app.tsx do this import import { useNavigate } from 'react-router-dom';
In the App method in app.tsx define following handler
Click on Additional page 1 in the side navigation menu
Click on Additional page 2 in the side navigation menu
Click Browser back button
Click back again
Expected behaviour
When clicking back button for the second time, I would expect app to navigate to home page, but you have to click it twice. I opened app, then went to additional page 1, then to additional page 2, so clicking browsers back two time should navigate me back to home page.
Contextual information
Packages and versions
List the relevant packages you’re using, and their versions. For example:
@shopify/app-bridge @ 4.1.3
@shopify/app-bridge-react @ 4.1.3
@shopify/polaris @ 12.27.0
react-router @ '6.23.1'
Platform
OS: MacOS
OS Version: Sonoma 14.0
App: Chrome
@itissible/matrixify
The text was updated successfully, but these errors were encountered:
Describe the bug
You have to double click browser back button to go back in history after navigating items in the side navigation menu.
To Reproduce
Steps to reproduce the behaviour:
app.additional.tsx
from theapp/routes
directory and paste two new filesapp.additional_1.tsx
andapp.additional_2.tsx
<TitleBar>
inapp.additional_1.tsx
toAdditional page 1
andAdditional page 2
for second page to see the difference when opening linksapp.tsx
do this importimport { useNavigate } from 'react-router-dom';
App
method inapp.tsx
define following handler<AppProvider>
create<NavMenu>
like thisAdditional page 1
in the side navigation menuAdditional page 2
in the side navigation menuExpected behaviour
When clicking back button for the second time, I would expect app to navigate to home page, but you have to click it twice. I opened app, then went to additional page 1, then to additional page 2, so clicking browsers back two time should navigate me back to home page.
Contextual information
Packages and versions
List the relevant packages you’re using, and their versions. For example:
@shopify/app-bridge
@4.1.3
@shopify/app-bridge-react
@4.1.3
@shopify/polaris
@12.27.0
react-router
@ '6.23.1'Platform
@itissible/matrixify
The text was updated successfully, but these errors were encountered: