chore: add abort controller

This commit is contained in:
kawamataryo
2024-10-19 23:09:24 +09:00
parent aaf28b0c95
commit 90d991b76e
3 changed files with 32 additions and 2 deletions

View File

@@ -37,6 +37,7 @@ const App = () => {
matchTypeFilter,
changeMatchTypeFilter,
filteredUsers,
stopRetrieveLoop,
} = useRetrieveBskyUsers();
React.useEffect(() => {
@@ -81,7 +82,7 @@ const App = () => {
return (
<>
<Modal anchorRef={modalRef}>
<Modal anchorRef={modalRef} onClose={stopRetrieveLoop}>
<div className="flex flex-col gap-6">
<div className="flex justify-between">
<h1 className="text-2xl font-bold">Find Bluesky Users</h1>