Skip to content

How to useQuery with non-GET endpoints? #2104

@bonniss

Description

@bonniss

Description

In my case, some endpoints are POST, but for getting data only. I cannot/do not want to change the API.
The docs state that path can only be any endpoint that supports GET requests.

Proposal

Can we add one version of useQuery, kinda like useQueryFull (okay, naming sucks) that supports valid paths regardless of method?

Extra

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestswr-openapiRelevant to swr-openapi library

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions