Object returned from useCurrentMatches is not reactive at all, wrapping it in createMemo (as shown in the router docs) will have no effect. It simply won't get triggered when path/params/info changes. The only way to get this working is to call useCurrentMatches again within some effect which is, obviously, not right.
Describe the bug
Object returned from
useCurrentMatches
is not reactive at all, wrapping it in createMemo (as shown in the router docs) will have no effect. It simply won't get triggered when path/params/info changes. The only way to get this working is to calluseCurrentMatches
again within some effect which is, obviously, not right.Your Example Website or App
https://stackblitz.com/edit/solid-router-ckudid?file=src/index.tsx
Steps to Reproduce the Bug or Issue
info
will never get updatedExpected behavior
useCurrentMatches
should return a proxy that updates whenever a list of matched routes changes.Screenshots or Videos
No response
Platform
Additional context
No response