Skip to content

App crashes on browser native back/forward button from project pages #565

Description

@hw-workshop

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions