corejavascript/typeahead.js

Duplicates when using remote and prefetch

Open

#103 创建于 2016年11月27日

在 GitHub 查看
 (3 评论) (0 反应) (0 负责人)JavaScript (956 star) (232 fork)batch import
documentationhelp wanted

描述

Hello

I am using prefetch to obtain most used data. When writing something more results are queried from server with remote option.

If prefetch data contains same items as the remote data, both of them are shown in the list (so they are duplicates).

I tried to Google it but only result is that "dupDetector" should be used like this dupDetector: function (remoteMatch, localMatch) { return remoteMatch.id === localMatch.id; }

But it seems that there is no dupDetector option available, is that correct? How should I do this?

贡献者指南

Duplicates when using remote and prefetch · corejavascript/typeahead.js#103 | Good First Issue