Thanks to visit codestin.com
Credit goes to github.com

Skip to content

False positive warning about calling useRoute within middleware #26612

@DamianGlowala

Description

@DamianGlowala

Environment

n/a

Reproduction

https://stackblitz.com/edit/github-vmpomt?file=pages%2Findex.vue

Describe the bug

When middleware contains navigateTo('<url>') to a page, which has a $fetch call using an interceptor, which in turn has a useRoute within it, a false positive warning is shown.

image

Additional context

No response

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions