Skip to content

Commit cd298f2

Browse files
committed
make search data task restartable so that only the latest request resolves
1 parent 60ab5cc commit cd298f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/search.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,6 @@ export default class SearchController extends Controller {
5959
}
6060

6161
return yield this.store.query('crate', { all_keywords, page, per_page, q, sort });
62-
}).drop())
62+
}).restartable())
6363
dataTask;
6464
}

0 commit comments

Comments
 (0)