Override a POST request to useQuery
and add singal
doesnt update all the places.
#1151
Unanswered
AdityaHegde
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have a query with a pretty big request object. So we have made it is a POST request. We are generating using
client: "svelte-query"
.Reference project: https://github.com/rilldata/rill/blob/main/web-common/orval.config.ts
To not treat it as mutator we are using
output
=>override
=>operations
and settinguseQuery: true
. Now how do we get query cancellation to work for this? Just addingsignal
along withuseQuery
doesnt seem to update the dedicated function calling the mutator. It does however add it in thecreateQueryXXX
method where the query object is built.Was not a 100% sure if this an issue or a misconfiguration. So added a discussion instead.
Beta Was this translation helpful? Give feedback.
All reactions