Skip to content

Commit 55239ac

Browse files
authored
fix: some browsers throw "signal is aborted without reason" (#9156)
1 parent 008dff2 commit 55239ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@react-stately/data/src/useAsyncList.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ function reducer<T, C>(data: AsyncListState<T, C>, action: Action<T, C>): AsyncL
181181
case 'filtering':
182182
// We're already loading, and another load was triggered at the same time.
183183
// We need to abort the previous load and start a new one.
184-
data.abortController?.abort();
184+
data.abortController?.abort('aborting current load and starting new one');
185185
return {
186186
...data,
187187
filterText: action.filterText ?? data.filterText,

0 commit comments

Comments
 (0)