withAbort is already included in withAsyncData, so you can recall the network without any glitches for the user!
Learn more: v1000.reatom.dev/handbook/asy...
@artalar.bsky.social
Artem Arutiunian, man of God, husband, father, programmer, speaker, bushcrafter. The author of https://reatom.dev
withAbort is already included in withAsyncData, so you can recall the network without any glitches for the user!
Learn more: v1000.reatom.dev/handbook/asy...
withAbort accepts the "strategy" optional parameter, which is 'last-in-win' by default, so it automatically aborts all concurrent requests for you!
👇
How does it work? The "wrap" safely throws an AbortError when the abort occurs. It works even in nested actions, so the behavior is the same as with generators, but with a common async/await.
👇
code example
Another #reatom tip. We has the withAbort extension that allows you to stop a process easily, and there are a few features behind this 👇
26.12.2025 13:28 — 👍 1 🔁 0 💬 1 📌 0Why Reatom? dev.to/artalar/reat...
09.12.2025 22:52 — 👍 0 🔁 0 💬 0 📌 0Commit with options hook usage: github.com/reatom/reato...
09.12.2025 22:52 — 👍 1 🔁 0 💬 1 📌 0Just finished Reatom adapter for @preactjs.com and it was so fun! You know why? The options hooks is super handy, I implemented transparent atoms reactivity with 5 lines of code 🤯
👇
Check our docs: v1000.reatom.dev
Try with LLM: v1000.reatom.dev/_llms-txt/ge...
I'm extremely happy to announce the beginning of a new era in state management!
The new Reatom has way more than we're used to:
- The simplest "signal"-like API
- The most advanced concurrent effect management
- The most extensible plugin system (after jQuery, lol)
dev.to/artalar/reat...