Skip to content

Commit cb14d49

Browse files
Merge pull request #153 from opencomponents/pass-signal
Allow passign an AbortSignal to getData/getAction
2 parents 261ce2a + 089a50a commit cb14d49

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oc-client-browser",
3-
"version": "2.1.9",
3+
"version": "2.1.10",
44
"description": "OC browser client",
55
"main": "index.js",
66
"types": "index.d.ts",

src/oc-client.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ export function createOc(oc) {
284284
method: "POST",
285285
headers: headers,
286286
body: JSON.stringify(data),
287+
signal: options.signal,
287288
})
288289
.then(handleFetchResponse)
289290
.then((apiResponse) => {

0 commit comments

Comments
 (0)