Skip to content

Commit ac4033a

Browse files
committed
fix: pass retiring signal to position transport so store.retire() cancels it
1 parent 362b33a commit ac4033a

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

‎packages/octane/src/data/store.ts‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -405,10 +405,7 @@ export function createDataStore(options: DataStoreOptions): DataStore {
405405
options.feeds.map((feed) =>
406406
Promise.resolve()
407407
.then(() =>
408-
transport(
409-
{ kind: 'position', name: feed.name, input: undefined },
410-
new AbortController().signal,
411-
),
408+
transport({ kind: 'position', name: feed.name, input: undefined }, retiring.signal),
412409
)
413410
.then(
414411
(reply) => {

0 commit comments

Comments
 (0)