Skip to content

useCurrentMatches only returns one match #528

@RndUsername

Description

@RndUsername

Describe the bug

When I use useCurrentMatches with the FileRouter and nested paths, I only get one match, i.e. ['test1/test2/test3'] instead of ['test1', 'test2', 'test3']

Your Example Website or App

https://stackblitz.com/edit/github-grada5-8t8kru5v?file=README.md

Steps to Reproduce the Bug or Issue

use useCurrentMatches as described in the docs

Expected behavior

useCurrentMatches should return multiple matches if I have nested paths

Screenshots or Videos

No response

Platform

  • OS: Windows
  • Browser: Chrome, Firefox

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions