ckastbjerg / next-type-safe-routes

Never should your users experience broken links again!
MIT License
70 stars 5 forks source link

No support for page anchors #25

Open osdiab opened 3 years ago

osdiab commented 3 years ago

like /myRoute#some-section

Though to be honest it seems like query params ought to just be handled separately from this library - if it were me I would limit the API surface of this just to route paths, and just deal with search params outside of this library, to contain scope.

ckastbjerg commented 3 years ago

I would tend to agree. I've just chosen to support query now as it was convenient for the project I created the library for. Might make sense to deprecate that functionality. I'll think about it :)