solid-router icon indicating copy to clipboard operation
solid-router copied to clipboard

useCurrentMatches only returns one match

Open RndUsername opened this issue 9 months ago • 1 comments

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

RndUsername avatar May 05 '25 13:05 RndUsername

I asked in the Discord before, and they said it's a bug and I should report it here.

RndUsername avatar May 08 '25 11:05 RndUsername