Skip to content

react-call@2.0.1

Choose a tag to compare

@github-actions github-actions released this 30 May 22:58
· 69 commits to main since this release
6d21a44

Patch Changes

  • a087619: Fix: an end-all end() (called without a target promise) no longer drops calls made later in the same synchronous tick (ADR-0020).

    Previously, end() scheduled a deferred stack-clear that wiped the entire stack on the next macrotask — including any call()/upsert() issued after it. So a single handler like:

    Upload.end(); // end all (stack may be empty — intended no-op)
    for (const file of files)
      Upload.call({ label: file.name, state: "uploading" });

    ended up rendering nothing: the three new calls were appended, then clobbered when the end-all's deferred removal fired. The removal is now scoped to exactly the calls that end() resolved, so calls added afterwards survive. Targeted end(promise, value) and update() were never affected.