Fork me on GitHub
#re-frame
<
2023-07-19
>
rvalentini08:07:10

Hey everyone 👋🙂 I’m pretty new to re-frame and have a question concerning https://github.com/superstructor/re-frame-fetch-fx . My use case: I have batches of requests that belong together and that I would like to track with a single AbortController instance per batch. My idea was to only pass an abort signal from one of these AbortControllers whenever I dispatch a fetch effect. Looking at the implementation, it seems that aborting is done internally via :request-id, and each request is handled through a separate AbortController instance. My question is now: can I avoid tracking each request-id individually and pass the same “batch signal” to multiple requests somehow?

p-himik08:07:35

Doesn't seem like it. But that library is relatively tiny and with a very permissive license - you can copy its code locally and adapt it to your needs.

👍 2