Skip to content

[openapi-react-typescript] discrepency between queryOptions and other hook #1929

Closed
@tifosiblack

Description

@tifosiblack

Description

Thanks for the new queryOptions, it's really useful for prefetching queries in the route loaders. However I have a small issue with queryOptions. The third parameter seems required, even when no parameters is expected.

image

vs

image

image

Reproduction

Last Typescript version (don't know if it matters), an endpoint in the openapi which doesn't need any parameter.
queryOptions should behave the same than other hooks.

Expected result

queryOptions always requires a third parameter (an empty object do the trick however).

Checklist

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingopenapi-fetchRelevant to the openapi-fetch library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions