pouchdb-community/pouchdb-quick-search

Possible filter cache issue

Open

#41 建立於 2015年12月18日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)JavaScript (82 fork)github user discovery
bughelp wanted

倉庫指標

Star
 (377 star)
PR 合併指標
 (PR 指標待抓取)

描述

Hi, I'm running in to an odd bug where the filter option for searching seems to be cached (at least I think that's what's happening).

I've managed to reproduce the issue with this code: http://bl.ocks.org/Darkle/9bcf54994859b53dc3da

The second search should return doc7, but it seems to have cached the first filter, even though the domainToSearchFor is changed.

Also, I found that if ran the code in the browsers dev console and did the searches manually, and then if I changed the code in the filter for the second search (even just adding a blank new line) it works as expected and updates the filter.

貢獻者指南