solid-router
solid-router copied to clipboard
useCurrentMatches only returns one match
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
I asked in the Discord before, and they said it's a bug and I should report it here.