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
I'm running into a problem with initialPageParam here. My api expects no or an empty initial page parameter. initialPageParam="" generates code that sends page=0. I believe the reason is that formatOptions => safeParseNumber converts the empty string to 0.
#177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
I'm running into a problem with `initialPageParam` here. My api expects no or an empty initial page parameter. `initialPageParam=""` generates code that sends `page=0`. I believe the reason is that `formatOptions => safeParseNumber` converts the empty string to `0`.
I can work around it by setting initialPageParam="''" which generates code that sends page=%27%27 which works with my api but it's a bit ugly.
Ideally there would be a omitInitialPageParam parameter that would change it so that no page parameter is send at all.
I can work around it by setting
initialPageParam="''"
which generates code that sendspage=%27%27
which works with my api but it's a bit ugly.Ideally there would be a
omitInitialPageParam
parameter that would change it so that no page parameter is send at all.Originally posted by @JonasPf in #149 (comment)
The text was updated successfully, but these errors were encountered: