pouchdb-community/pouchdb-quick-search

Possible filter cache issue

Opened this issue · 0 comments

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.