[✨] Ability to pass AbortSignal when submiting routeAction$ programatically #150
amit13k
started this conversation in
Proposals For Qwik
Replies: 1 comment
-
|
We moved this issue to |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem?
Recently, AbortSignal support was added for server$. Since actions can also be triggered programmatically, it might be useful to implement the same for routeAction$ as well.
Describe the solution you'd like
Right now, the following code is accepted by the existing typescript definitions (but it doesn't work),
So, AbortSignal signal as an optional first parameter might be one of the ways to implement this feature.
Or maybe just follow the convention fetch/TRPC follow with { signal: ac.signal } as the last optional parameter.
Example from fetch
Example from TRPC
Describe alternatives you've considered
just ignoring the output
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions