Closed
Description
Description
openapi-react-query crashes if endpoint returns null.
Reproduction
any endpoint which returns null with useQuery exposed by this library
Expected result
null is both valid json and react-query allows to return it from queryFn
This line causes the issue -
!data
should be replaced with data!==undefined
Checklist
- I’m willing to open a PR (see CONTRIBUTING.md)