Skip to content

using regExp in Path triggers pre, post hooks twice and #83

Open
@inZaCz

Description

@inZaCz

When using regexp (pattern or in string) in path in route definition. pre and post hooks are trigged twice and also triggered even outside the router basePath when leaving page with router

Example:
{ path: '(?<page>.*)', hooks: { post: [async (route) => { page = route.result?.path?.params?.page; console.log('Page', page); }], }, },

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions