next-type-safe-routes icon indicating copy to clipboard operation
next-type-safe-routes copied to clipboard

Exclude `undefined` query params

Open longlostnick opened this issue 2 years ago • 0 comments

Right now if you do something like this:

getRoute({
  route: '/my-page',
  query: {
    thing: undefined,
  }
});

You get this:

/my-page?thing=undefined

Would it make sense to just exclude or strip out query params that are undefined?

longlostnick avatar Sep 27 '22 19:09 longlostnick