fix(search): key the in-flight search by actor and record

Two tabs searching two different records (one's own and a shared one)
cancelled each other, because a new search aborted any earlier one by
the same actor. The slot is now held per actor and record.
This commit is contained in:
Marc-André Bombeck committed 2026-10-11 15:17:43 +02:00
1 parent 24f06884b3
commit 88aec7edb6
3 files changed
+39 -9

No files matched your search

+1 -1
View File
@@ -90,7 +90,7 @@ export const POST = apiHandler(async (request: NextRequest) => {
});
}
const slot = beginSearch(actor.id);
const slot = beginSearch(actor.id, user.id);
try {
const [modules, domainVisible, timezone] = await Promise.all([
resolveModuleMap(user.id),