Next.js Discord

Discord Forum

Why is there a delay when initially clicking any of my filter checkboxes?

Unanswered
Exotic Shorthair posted this in #help-forum
Open in Discord
Avatar
Exotic ShorthairOP
If you visit my website and click on any of the filter checkboxes on the left hand side of the page to filter the coffee products, why is there an initial delay of a second or two before the checkbox state is updated and before the search params are updated?

https://collection.coffee

I have a feeling it has to do with how I'm passing the search params back down and back up between the components but I'm not entirely sure. I posted a link below to where my component is for my checkbox.
https://github.com/jdouglass/collection-coffee/blob/main/web/collection-coffee/src/app/components/FilterCheckbox/FilterCheckbox.tsx

0 Replies