Skip to content

Commit ca00d67

Browse files
author
Simon Milfred
committed
fix: added abort reasons
1 parent ce21bbb commit ca00d67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

composables/useLimboSearch.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export const useLimboSearch = async (options = {}) => {
126126
onBeforeUnmount(() => {
127127
// Cancel any active requests to prevent race conditions
128128
if (activeRequestController.value) {
129-
activeRequestController.value.abort();
129+
activeRequestController.value.abort('The component was unmounted.');
130130
}
131131
// Clear timeout if any
132132
if (typeof window !== "undefined" && requestTimeout.value) {
@@ -589,7 +589,7 @@ export const useLimboSearch = async (options = {}) => {
589589
try {
590590
// Cancel any existing request to prevent race conditions
591591
if (activeRequestController.value) {
592-
activeRequestController.value.abort();
592+
activeRequestController.value.abort('New search initiated.');
593593
}
594594

595595
// Create new controller for this request

0 commit comments

Comments
 (0)