You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Sycamore's router doesn't seem to handle the case of a route that has a dynamic parameter (e.g. <locale>) before a dynamic segment (e.g. <slug..>), producing the error mismatch between number of capture fields and variant fields.
To Reproduce
Steps to reproduce the behavior:
Add the following lines to a router (en example I was working with):
Expected behavior
Sycamore should accept the route as valid rather than generating a compile-time error.
Environment
Sycamore: v0.5.2 (within Perseus)
Additional context
Interestingly, the route /post/<slug..>/<locale> works (with the variants in a different order), so it seems that dynamic paths are supported after dynamic segments, but not before.
The text was updated successfully, but these errors were encountered:
Describe the bug
Sycamore's router doesn't seem to handle the case of a route that has a dynamic parameter (e.g.
<locale>
) before a dynamic segment (e.g.<slug..>
), producing the errormismatch between number of capture fields and variant fields
.To Reproduce
Steps to reproduce the behavior:
Add the following lines to a router (en example I was working with):
Expected behavior
Sycamore should accept the route as valid rather than generating a compile-time error.
Environment
Additional context
Interestingly, the route
/post/<slug..>/<locale>
works (with the variants in a different order), so it seems that dynamic paths are supported after dynamic segments, but not before.The text was updated successfully, but these errors were encountered: