adobe / adobe/acc-js-sdk

SDK should support abortable requests

Open
#61 1 comment 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
27
Forks
25
PR merge metrics
No merged PRs in 30d

Description

Currently there is no way to abort a request from the client. For example:

1. UI makes requests to fetch the data
2. While the call is in progress, the UI component unmounts/redirects to some other component.
3. While un-mounting, the UI should be able to cancel pending HTTP calls to avoid unnecessary attempts to re-render.

### Expected Behaviour

### Actual Behaviour

### Reproduce Scenario (including but not limited to)

#### Steps to Reproduce

#### Platform and Version

#### Sample Code that illustrates the problem

#### Logs taken while reproducing problem

Contributor guide

Open the contributing guide

Research direction

No files, tests, or entry points are identified in the issue. Start by tracing how the SDK creates HTTP requests, then determine how a client could cancel pending calls; done means the UI can abort an in-progress request when its component unmounts or redirects.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.