When navigating to a project page via an in-app link and then pressing the browser native back or forward button, the app crashes showing "An unexpected error occurred" with a minified stack trace. All in-app navigation buttons work correctly. The issue only occurs with the browser native back/forward buttons.
Route setup:
javascript
ProjectDetail uses:
javascriptconst [matched, params] = useRoute<{ slug: string }>("/projects/:slug");
const [, setLocation] = useLocation();
Any help would be greatly appreciated.
When navigating to a project page via an in-app link and then pressing the browser native back or forward button, the app crashes showing "An unexpected error occurred" with a minified stack trace. All in-app navigation buttons work correctly. The issue only occurs with the browser native back/forward buttons.
Route setup:
javascript
ProjectDetail uses:
javascriptconst [matched, params] = useRoute<{ slug: string }>("/projects/:slug");
const [, setLocation] = useLocation();
Any help would be greatly appreciated.