downforacross / downforacross.com

Web frontend for downforacross.com -- continuation of stevenhao/crosswordsio
https://downforacrosscom.downforacross1.now.sh
MIT License
229 stars 90 forks source link

Fix search #161

Closed ewmson closed 3 years ago

ewmson commented 3 years ago

The new puzzle list search was always lagging behind by one character type which was not ideal.

This is fixed by making the react callback actually depend on the filters which will make the search match all of the current filters, because we will reload whenever the filter changes.

We JSON stringify as react compares with === so if we do not then it will change on every render rather than only then the filters actually change.

vercel[bot] commented 3 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/downforacross/downforacrosscom/hcapea0i6
✅ Preview: https://downforacrosscom-git-fork-ewmson-fixsearch.downforacross1.vercel.app