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
We just encountered the same issue in our code and were surprised about undefined being serialized into "undefined", would be pretty cool to have a custom param serializer, like in axios for example
undefined
is getting serialized to the string "undefined" instead of omitted from the query params, I believe because of this line:https://github.com/elysiajs/eden/blob/8a0f7b6194ea336b18a1c80d9a7dd6d2b1afbba2/src/treaty2/index.ts#L188C38-L188C56
I would like to omit such params.
I tried using the
fetcher
option but the URL has already been built by that point.onRequest
also doesn't give me access to the query params it seems.An option like
serializeQuery(query: Record<string,any>): string
or similar that lets me provide a custom implementation would be great.The text was updated successfully, but these errors were encountered: