[feature request] ability to cancel a previous request when using createResource #2129
FrenchDilettante
started this conversation in
Ideas
Replies: 1 comment
-
I implemented this a few years ago and it was not accepted, since it is only required for some use cases. Use makeAbortable from solid-primitives instead. |
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.
-
Hi folks!
I'm working on a hobby project and decided to use SolidJS. It's been a very interesting journey so far, so before I dive into my feature request I wanted to thank you for the work put into this framework.
Consider a (simplified) search feature:
Because this search is triggered on each keystroke, I would like the ability to cancel any ongoing request. I know that
createResource
draws inspiration from Tanstack Query, so something like:Where signal would automatically be called on each subsequent request.
If you think this is a worthwhile improvement, I'd be delighted to help implement it!
Beta Was this translation helpful? Give feedback.
All reactions