Skip to content

docs: improve hooks for authGuard and potentially infinite loop #145

@sysmat

Description

@sysmat

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. In Routing Hooks you have authGuard and goto("/protected/denied");
  3. then in Router you pass pre: authGuard
  4. If developer define in RouteConfig path: 'protected/denied' then the user is in infinite loop and browser blow up

Expected behavior

  • router should have some mechanics from infinite loop
  • How to exclude some routes from pre

Logs
If available please provide any available logs, screenshots, etc.

Additional context

  • How to exclude some routes from pre or show in documentation how to do it

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