I am currently developing a page with a book listing. This page includes filtering/searching for these books. I am using states to communicate the search parameters between multiple components (Is this even a good practice?).
While developing in dev (npm run dev), the application works fine. I can filter and everything works.
However, when building (npm run build && npm run start), this functionality is lost.
I was able to pinpoint this as the page is rendered as a static page only when building. I was able to avoid this by calling an unused useSearchParams() to force the page to be rendered dynamically. But I believe this to be a hacky fix.