Closed adamgoose closed 2 months ago
I've combined my two PRs into this one to prevent having to rebase and re-generate the snapshots between merges. I've also added docs as requested. 👍
@adamgoose @7nohe this caused a breaking change, if you dont provide the initialPageParam
parameter it now defaults to "initialPageParam", before it defaulted to "1"..
It would be nice if it still had 1 as default value.
This adds a new argument
--initialPageParam
to customize theinitialPageParam
option passed to useInfiniteQuery. Defaults to 1.Fixes #141.
When nextPageParam is set to meta.nextPage, split on . and generate the appropriately nested typehint:
Fixes https://github.com/7nohe/openapi-react-query-codegen/issues/142.