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
This is irrelevant if we go with #21 , but right now the getRoute function refers to the catch-all part of a route to be path, ignoring the name in the actual route. For instance, /foo/[...bar].ts would be populated with getRoute({route: '/foo/[...bar].ts', path: 'baz'}) instead of getRoute({route: '/foo/[...bar].ts', params: {bar: 'baz'}}).
I found it counterintuitive that while NextJS refers to those catch-all params as params, this library doesn't.
The text was updated successfully, but these errors were encountered:
This is irrelevant if we go with #21 , but right now the
getRoute
function refers to the catch-all part of a route to bepath
, ignoring the name in the actual route. For instance,/foo/[...bar].ts
would be populated withgetRoute({route: '/foo/[...bar].ts', path: 'baz'})
instead ofgetRoute({route: '/foo/[...bar].ts', params: {bar: 'baz'}})
.I found it counterintuitive that while NextJS refers to those catch-all params as params, this library doesn't.
The text was updated successfully, but these errors were encountered: