pouchdb-community/pouchdb-quick-search

Possible filter cache issue

Open

#41 opened on Dec 18, 2015

View on GitHub
 (0 comments) (0 reactions) (0 assignees)JavaScript (82 forks)github user discovery
bughelp wanted

Repository metrics

Stars
 (377 stars)
PR merge metrics
 (PR metrics pending)

Description

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.

Contributor guide